Latest builds from Angular2 complain with: NgModule DynamicModule uses HomeComponent via “entryComponents”

后端 未结 5 1126
一整个雨季
一整个雨季 2021-01-01 11:12

Since switching to the latest builds of Angular 2 (i.e. on github, master), I get warnings as follows about all my components:

NgModule DynamicModule

5条回答
  •  独厮守ぢ
    2021-01-01 11:44

    If you are upgrading a large codebase then none of these answers tell you which component you forgot to add to app.module.ts

    The closest answer (if this is your problem) is given by @doubletriplezero

    He mentions that compiler.umd.js has some useful info.

    In fact this can tell you exactly which component you forgot to import. See

    Angular 2 Component is not part of any NgModule

    for a fuller answer

提交回复
热议问题