Angular 2 : No NgModule metadata found

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

    Hope it can help. In my case, I work with lazy-load module and I found this mistake lead to ERROR in No NgModule metadata found for 'MyModule'.

    in app-routing.module.ts
    { path: 'mc3', loadChildren: 'app/module/my/my.module#MxModule' },

    If I run ng serve --aot chrome dev tool can tell me Error: Cannot find 'Mc4Module' in 'app/module/mc3/mc3.module'

提交回复
热议问题