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
Finally I founded a solution. I describe it below in order to help community. In this scenario we need to add "preserveSymlinks": true option in build sectionto main application angular.json, the one that imported external library by npm link command.
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"preserveSymlinks": true,
Credits filipesilva on angular-cli issues
Hope this can help someone else in future.
Thanks
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
}