-
Notifications
You must be signed in to change notification settings - Fork 12k
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
ng build
chokes on processing Angular source maps
#5476
Comments
This was related to an issue in the angular repo angular/angular/pull/15226 and is resolved with the newly released rc5. It will work with the CLI once #5480 is resolved. |
Unfortunately, I can still reproduce the issue with @angular/[email protected] and [email protected].
|
I can't repro locally with just enabling the node modules source maps. It builds (but takes twice the amount of time):
|
@hansl looked into it more and said that it's due to incorrect source maps coming from If I remove all material source maps using:
the error goes away. |
Apparently it's a known error in source-map: mozilla/source-map#247 and related in ionic: ionic-team/ionic-app-scripts#796 As long as that issue is not fixed, we cannot really enable source maps in node_modules. Let's chat tomorrow @IgorMinar |
@hansl we could fork the project with this patch: mozilla/source-map#257 (comment). I verified that it works. |
That would work (but the mapping might be invalid), I'm not sure if that's what we want. Let's talk during the weekly. |
Removing this from 1.0 BLOCKING. The plan is to get Mozilla to fix their |
This happens without modifying the CLI as well when we pulled in
|
I was not able to reproduce this issue... get latest CLI locally
|
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
)Versions.
Repro steps.
node_modules/@angular/cli//models/webpack-configs/common.js
to no excludenode_modules
from thesource-map-loader
ng build
orng build --prod --sm
The log given by the failure.
Desired functionality.
should build 😄
Mention any other details that might be useful.
The text was updated successfully, but these errors were encountered: