This repository was archived by the owner on May 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 311
Uglifyjs raise an error when js lib not having sourcemap #887
Comments
I get the same error with any plain js files I include in the build. @danbucholtz this is the issue I mentioned you in on Friday. |
Working on this now. Thanks, |
I did a grotesque hack of uglifyjs.js to work around the issue for myself, will appreciate a legit fix ;)
|
This is fixed in Thanks, |
I just want to confirm 1.3.2 fixed this bug. And thanks, ionic team. |
What was done to fix the problem? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Note: for support questions, please use one of these channels:
https://forum.ionicframework.com/
http://ionicworldwide.herokuapp.com/
Short description of the problem:
What behavior are you expecting?
At least compiling without error. May be skip uglifying the js lib without sourcemap.
Steps to reproduce:
ionic build android --prod --release
I tried Chart.js and Chart.min.js, the results are the same
Which @ionic/app-scripts version are you using?
1.3.1
1.2.5 won't raise this error, but it will fail by another error(BuildError.Error (native)) See #853
1.1.4 won't raise this error, but it will fail because of javascript HEAP MEMORY. See #808
So now we got no working version of ionic-app-scripts : (
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
[23:32:37] transpile bundle started ...
[23:33:23] transpile bundle finished in 46.08 s
[23:33:23] uglifyjs started ...
[23:33:24] ionic-app-script task: "build"
[23:33:24] Error: ENOENT: no such file or directory, open 'PROJECT_PATH/www/build/Chart.js.map' in
undefined at line undefined, col undefined, pos undefined
Error: ENOENT: no such file or directory, open 'PROJECT_PATH/www/build/Chart.js.map' in undefined at line undefined, col undefined, pos undefined
at BuildError.Error (native)
at new BuildError (PROJECT_PATH/node_modules/@ionic/app-scripts/dist/util/errors.js:16:28)
at taskReject (PROJECT_PATH/node_modules/@ionic/app-scripts/dist/worker-process.js:36:22)
at PROJECT_PATH/node_modules/@ionic/app-scripts/dist/worker-process.js:14:13
at process._tickCallback (internal/process/next_tick.js:103:7)
The text was updated successfully, but these errors were encountered: