angular: Compilation error in Ivy mode with 8.0.0-rc.5
🐞 bug report
Is this a regression?
No
Description
I have a working Angular v7 application with the following dependency: “angular-star-rating”: “^3.0.8”
If I upgrade my application to the 8.0.0-rc.5 version it builds fine. But if enable Ivy mode in tsconfig.json
"angularCompilerOptions": {
"enableIvy": true
},
I start getting this error message during build.
🔬 Minimal Reproduction
ng build --prod
🔥 Exception or Error
ERROR in ENOENT: no such file or directory, open 'node_modules/angular-star-rating/angular-star-rating.js'
🌍 Your Environment
Angular Version:
Angular CLI: 8.0.0-rc.4
Node: 11.3.0
OS: win32 x64
Angular: 8.0.0-rc.5
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.800.0-rc.4
@angular-devkit/build-angular 0.800.0-rc.4
@angular-devkit/build-optimizer 0.800.0-rc.4
@angular-devkit/build-webpack 0.800.0-rc.4
@angular-devkit/core 8.0.0-rc.4
@angular-devkit/schematics 8.0.0-rc.4
@angular/cdk 8.0.0-rc.2
@angular/cli 8.0.0-rc.4
@angular/http 8.0.0-beta.10+1.sha-a28b3e3
@angular/material 8.0.0-rc.2
@ngtools/webpack 8.0.0-rc.4
@schematics/angular 8.0.0-rc.4
@schematics/update 0.800.0-rc.4
rxjs 6.5.2
typescript 3.4.5
webpack 4.30.0
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (7 by maintainers)
I opened PR #30795 that should get this supported. Unfortunately, we hit a restriction in TypeScript that currently requires an awful hack to workaround, so this might not get in shortly.
@sergey-morenets We should be able to support this structure. I don’t think it will be in the next build though.
Seems more like an update the library maintainer have to fix, than Angular team
Hi @JoostK
First of all, I didn’t run ngcc, I ran ng build --prod command as I mentioned in the description. But I noticed that you released 8.0 yesterday so I tried to upgdate my project again:
ng update --force=true --packageManager=yarn @angular/cli @angular/core
Unfortunately if I run ng build --prod or node_modules/.bin/ivy-ngcc I still get this exception.
Unfortunately, I can’t reproduce without a repo. Locally installing
angular-star-rating
and running ngcc completes successfully. Could you provide a Github repo we may clone?