-
Notifications
You must be signed in to change notification settings - Fork 65
Compile Error when using Uglify in Webpack/React Build Process #134
Comments
Yep - when I do it, my error reads
Also from importing the 3box lib |
To my knowledge Uglify is unable to parse ES6, so presumably during the build process not everything is being properly compiled to ES5. Just for fun tried running the build process with |
So it appears the |
yeah it seems to be that module, and that could be es6, while the build would not be babelifying all the node modules. What i'm not following yet, is the webpack build/config in the 3box-js lib uses uglify, and the build works fine. Could be the webpack version and versions of the plugins connected, example above look like and older version of webpack. |
Turnouts to be a combination of what both @kamescg and I said. Anyways these issues in other repos include summaries of these problems - ipfs/js-ipfs#1321 and ipfs-inactive/js-ipfs-http-client#611. One option is to eject and change the webpack configs in Closing this issue for now, based on info above. (cc @kamescg @oznekenzo ) |
Describe the bug
When attempting to compile my React project using a Webpack setup that includes Uglify I get the following error.
I've narrowed it down to the 3Box module, because when I comment out the import the project will compile without any issues.
// import ThreeBox from '3box';
Uglify settings configuration.
I haven't experienced this issue before with another module.
To Reproduce
Steps to reproduce the behavior:
3box
module dependencyExpected behavior
Generate project assets to share with the world.
The text was updated successfully, but these errors were encountered: