Angular 2 : No NgModule metadata found

后端 未结 28 1545
盖世英雄少女心
盖世英雄少女心 2020-11-30 05:31

I\'m brand new to Angular 2 and attempting to follow along with a video tutorial I found. Despite following all of the steps, Angular just won\'t work; I get the following e

28条回答
  •  青春惊慌失措
    2020-11-30 05:44

    There are more reasons for getting this error. This means your application failed to build as expected.

    Check for the following..

    • Check whether the node_modules version are not changed, this is the primary reason.
    • If you are moving from Some other Build tool to webpack, For example Systemjs to Webpack, If some of your dependencies are not modular in nature you may get this error, check for that too.
    • Check for Obsolete features of the framework, Ex: "HTTP_PROVIDERS" in angular 2 and remove them.
    • If you are upgrading, then make sure you are following the current syntax of the Framework, for Ex: routing syntax has been changed in Angular2..
    • Check the Bootstraping process and make sure you are loading the correct Module.

提交回复
热议问题