error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class

后端 未结 25 1972
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-13 12:43

First time using firestore and I\'m getting this error. It seems to be a problem with Ivy, from my research. I don\'t have a lot of experience modifying tsconfig.app.json, w

25条回答
  •  囚心锁ツ
    2020-12-13 13:01

    I had the same problem. I followed these steps (in this exact order, this is VERY important):

    1. Create child component in the "app.module.ts"
    2. Build the application
    3. Create parent component
    4. Build the application
    5. Create HTML archive
    6. Build the application

    This happens mainly because Angular won't build those modules in the correct order, i.e before the HTML.

    e.g My code:

       
        
        My App
        
        
        
      

提交回复
热议问题