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.

Webpack build fails (react-scripts 0.9.5)

See original GitHub issue

When importing and using URL in an app created with create-react-app, building a production app fails with:

> react-scripts build

Creating an optimized production build...
Failed to compile.

static/js/main.38ef0137.js from UglifyJs
SyntaxError: Name expected [./~/whatwg-url/lib/url-state-machine.js:6,0]

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
domeniccommented, Sep 6, 2017

Sounds like you should file a bug with webpack.

1reaction
stevenvachoncommented, Sep 13, 2017

I think @domenic is against mentioning other projects in general.

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-scripts start throws an error when webpack is installed to ...
I am getting an error in my react project after I run npm start after installing webpack. npm install webpack npm install webpack-dev-server....
Read more >
Webpack 5 errors | ImmutableX Documentation
The reason for this error is that create-react-app uses a version of webpack greater than 5, which, unlike versions < 5, does not...
Read more >
react-scripts-ts - npm Package Health Analysis - Snyk
When you're ready to deploy to production, create a minified bundle with npm run build . Migration. In general, most upgrades won't require...
Read more >
react-scripts' is not recognized as an internal or external ...
To do this, first make sure that react-scripts is listed in your package.json file. If it is not, then you can add it...
Read more >
react-scripts - UNPKG
The CDN for react-scripts. ... 110, You will also see any lint errors in the console. ... This tells Webpack to include that...
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