ng build does not include component class code of library modules

后端 未结 1 900
不思量自难忘°
不思量自难忘° 2021-01-22 11:25

I have created a library that has modules that have components in them.

My library public_api.ts has this:

export * from \'./src/app/modules/my-mod-1/my-         


        
1条回答
  •  粉色の甜心
    2021-01-22 11:46

    I got some help from here: https://github.com/angular/angular-cli/issues/11394

    It appears that:

    1) you should export all components and modules used by the library in the public_api.ts file.

    2) apparently deleting the node_modules folder and then re-installing it by npm install seems to work, it appears that the library cached files were corrupt

    Now my app works in production as well!

    0 讨论(0)
提交回复
热议问题