Angular Library Route Module does not work when imported in application

前端 未结 2 600
难免孤独
难免孤独 2021-01-18 16:33

I need a help about an issue that I cannot solve. I\'m studying angular 7 library in order to add modularization to my application but module routes defined in library seems

2条回答
  •  迷失自我
    2021-01-18 16:47

    I have an angular 11 project and I fixed this error. I enabled enableIvy in angularCompilerOptions in the tsconfig.lib.prod.json and I have built with --prod.

      "angularCompilerOptions": {
        "enableIvy": true
      }
    

提交回复
热议问题