Angular 2 : No NgModule metadata found

后端 未结 28 1459
盖世英雄少女心
盖世英雄少女心 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 06:09

    In your main.ts, you are bootstrapping both your AppModule and your App. It should just be the AppModule, which then bootstraps the App.

    If you compare your main.ts to the docs you'll see the difference - just remove all references to App from main.ts

提交回复
热议问题