-
Notifications
You must be signed in to change notification settings - Fork 154
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
Clean build off master - Error: Cannot find module 'uglify-js' #43
Comments
Seems to help. Webpack runs without error. |
I'll check soon, also i using this template in windows 10 with node.js 7.10.0 and everything working. Uglify js only works when you use --release command Have a great day! |
Hello guys, If you want to create issue on uglify-js git it displays these texts: <!-- Note: for ES6 see: https://github.com/mishoo/UglifyJS2/tree/harmony#harmony -->
...
<!--
Note: `uglify-js` only supports ES5.
Those wishing to minify ES6 should use `uglify-es`.
--> They are changing the uglify js and these changes are not backward compatible. So since #harmony branch not compatible with v2.x we have 2 choices:
Note: I will update the dependency soon. You can update your dependencies yourself if you want with these commands: npm rm uglify-js --save-dev
npm i --save-dev https://github.com/mishoo/UglifyJS2.git#harmony-v2.8.22 |
I published new package to npm |
Your project looks like fun. I set it up using the command you have in the instructions.
No errors. One warning that I think may be relevant is:
I then ran
npm install
All good.
When I run webpack I get
So, I installed the Android platform
cordova platform add android
All good.
Then I and ran
cordova build android
And I get
I checked
node_modules\
and I founduglify-es
,uglifyjs-webpack-plugin
,uglify-to-browserify
Not sure about that
uglify-es
folder.In the
package.js
file in dev it says,When I try to
I now see a uglify-js folder in the
node-modules
folder, but I still get the sameuglify-js not found
error.I'm on Linux and checked my $PATH for conflicting settings. No path specified for node_modules. That's all good, no reference at all.
I haven't installed uglify globally. That would probably solve the issue though it might make reference to the Harmony version difficult, breaking support for ES6 (I'm guessing?).
I'm new to webpack (previous gulp exp.) so maybe I'm using Webpack incorrectly or missing a step?
Running
Node v 7.2.1
Cordova v 6.5.0
NPM v 3.10.10
Any advice appreciated. Thank you in advance.
The text was updated successfully, but these errors were encountered: