Out of the box create-react-app failing due to uglify-webpack-plugin
See original GitHub issueIs this a bug report?
Yes
Can you also reproduce the problem with npm 4.x?
Yes, I am running npm 5.5.1
I rolled npm back to version and I’m still having the exact same issues.
Which terms did you search for in User Guide?
(Write your answer here if relevant.)
Environment
node -v
: 8.8.1npm -v
: 4.6.1 (After rolling back, no effect on newer version)yarn --version
(if you use Yarn): 1.0.0npm ls react-scripts
(if you haven’t ejected): N/A
Then, specify:
- Operating system: Mac
- Browser and version (if relevant):
Steps to Reproduce
(Write your steps here:)
- run create-react-app <Name of project>
- create-react-app fails on uglify-webpack-plugin
Expected Behavior
Would create a new application
Actual Behavior
When I run create-react-app it fails when looking for uglifyjs-webpack-plugin. I have searched the posts on this topic already and installed the beta uglify-webpack plugin that I’ve seen and still nothing. Not sure what else to do. I’ve uninstalled and reinstalled node, npm and create-react-app. I’ve rolled back my npm. I will post a photo of my terminal.
Reproducible Demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (6 by maintainers)
Top Results From Across the Web
How can I add the CopyWebpackPlugin to create-react-app ...
I am getting no errors and no files are being copied. This is my config-overrides.js const CopyWebpackPlugin = require('copy-webpack- ...
Read more >Create a React app from scratch with Webpack and Babel
Use create-react-app, a popular tool that lets you set up a React ... Out of the box, Babel simply parses our code and...
Read more >Dealing with CORS Errors in Blockstack Auth and React - Apps
I've been working on building the simple Hello Blockstack app in React, ... The config below should work out of the box for...
Read more >You Don't Need Create-React-App. Webpack ... - Sviat Kuzhelev
In case of React-based code-producing systems it's obviously to know that today we don't have something even better than starter kit from Facebook...
Read more >How can I add the CopyWebpackPlugin to create-react-app ...
You could just add an extra step to your build script in package.json. The step below is completely in your control and does...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Since the script calls
node lib/post_install.js
instead ofnode ./lib/post_install.js
I’m wondering if you have any custom config aroundNODE_PATH
or any environment variable that may affect the current working directory for these scripts and or node’s file resolution.FYI, I had the same problem. Uninstalled yarn and it worked.