question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Out of the box create-react-app failing due to uglify-webpack-plugin

See original GitHub issue

Is 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

  1. node -v: 8.8.1
  2. npm -v: 4.6.1 (After rolling back, no effect on newer version)
  3. yarn --version (if you use Yarn): 1.0.0
  4. npm ls react-scripts (if you haven’t ejected): N/A

Then, specify:

  1. Operating system: Mac
  2. Browser and version (if relevant):

Steps to Reproduce

(Write your steps here:)

  1. run create-react-app <Name of project>
  2. 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:closed
  • Created 6 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
BYKcommented, Nov 3, 2017

Since the script calls node lib/post_install.js instead of node ./lib/post_install.js I’m wondering if you have any custom config around NODE_PATH or any environment variable that may affect the current working directory for these scripts and or node’s file resolution.

0reactions
aeizcommented, Nov 9, 2017

FYI, I had the same problem. Uninstalled yarn and it worked.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found