-
Notifications
You must be signed in to change notification settings - Fork 12k
ng build --build-optimizer --aot fails when upgrading to @angular-devkit/build-angular 0.6.8 #11192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We seem to suffer from this same issue. The CI server fails on every build with this same stack trace, but local builds are fine. I can reproduce the following scenarion (multiple times):
Perhaps this can help tracking down the issue UPDATE: after some more investigation this seems related to |
Just arrived to the same error, confirming that with 0.6.7 it works. Also note that this error occurred after I implemented lazy modules into my app, so it will be probably connected. |
i just noticed this after including yarn to mirror our npm packages offline and doing a prod build (ng build --prod) with version 0.6.8. Version 0.6.7 works fine. |
I can confirm reverting to 0.6.7 works, for me the error also occurs in a lazy loaded module. |
Also can confirm this issue here. With 0.6.8 the error occurs with 0.6.7 not. |
An error occurs, if build angular production mode from version 0.6.8. ('remarkable' causes the error) This commit fix the issue by downgrading angular cli version to 0.6.7. See details via angular/angular-cli#11192
Hello |
0.7.1 still has the issue as well. |
0.7.5 has the same issue. Any updates on this? I've been unable to update these dependencies for a few months now. Can anyone suggest a workaround? |
I pinned the version "0.6.7" in my package.json |
Yeah, that's what I've been doing. Would really like to update soon though. |
For context, I believe this is the same as reported in #11055 and #11918. This happens because Build Optimizer functions slightly differently with and without sourcemaps. Without sourcemaps we take shortcuts that make it much faster. As far as I can tell, when the shortcuts are not taken we run into a TypeScript 2.9 bug: microsoft/TypeScript#26253, microsoft/TypeScript#2506. microsoft/TypeScript#24963 (these are all the same AFAIK). I think this bug is sorted in TS 3.x, and we updated out build optimizer dependencies accordingly. So if you update to Let me know if you still see this, and if so, please give me a repro that I can look into. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Area
Versions
Running Mac OS X High Sierra 10.13.5.
Repro steps
First, clone the project and checkout the branch I've created for the purposes of this bug report:
Then build the project using the following commands:
The log given by the failure
Mention any other details that might be useful
This error does not show up when setting
@angular-devkit/build-angular": "0.6.7"
in mypackage.json
(I only see the error when upgrading to0.6.8
).The text was updated successfully, but these errors were encountered: