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.

CRA 3.3.0 - webpack unknown rule

See original GitHub issue

Upgrading CRA to 3.3.0 the build stops with exception:

/mnt/c/Users/Aspen/Code/web_server/node_modules/@craco/craco/lib/plugin-utils.js:29 
    throw new Error(
    ^

Error: Found an unhandled loader in the development webpack config: /mnt/c/Users/Aspen/Code/web_server/node_modules/resolve-url-loader/index.js
 
This error probably occurred because you updated react-scripts or craco. Please try updating craco-less to the latest version:

   $ yarn upgrade craco-less

Or:

   $ npm update craco-less

If that doesn't work, craco-less needs to be fixed to support the latest version. 
Please check to see if there's already an issue in the FormAPI/craco-less repo:

   * https://github.com/FormAPI/craco-less/issues?q=is%3Aissue+webpack+unknown+rule

If not, please open an issue and we'll take a look. (Or you can send a PR!)

You might also want to look for related issues in the craco and create-react-app repos:

   * https://github.com/sharegate/craco/issues?q=is%3Aissue+webpack+unknown+rule
   * https://github.com/facebook/create-react-app/issues?q=is%3Aissue+webpack+unknown+rule

(Tried updating)

Thanks!

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:8
  • Comments:24 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
cosydneycommented, Oct 18, 2020

Hey can’t seem to find a workaround I’m using the latest versions and I’ve been deleting node modules and reinstalling with yarn but still throws the same error:

"@craco/craco": "^5.7.0", "craco-less": "^1.17.0",

3reactions
davidsharecommented, Jan 17, 2021

So this error occurs when I run export NODE_ENV=production

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - CRA 3.3.0 - webpack unknown rule - - Bountysource
Upgrading CRA to 3.3.0 the build stops with exception: /mnt/c/Users/Aspen/Code/web_server/node_modules/@craco/craco/lib/plugin-utils.js:29 throw new Error( ...
Read more >
SyntaxError and "Unknown word" when building SSR CRA ...
Context: This is a create-react-app using server-side-rendering. Related to this issue is my attempt to get this build process (webpack?) to not ...
Read more >
validationerror: invalid options object. dev middleware has ...
Web pack has been initialized using a configuration object that does not match the API ... configuration.output has an unknown property 'futureEmitAssets'.
Read more >
ts-loader - npm
TypeScript loader for webpack. Latest version: 9.4.2, last published: a month ago. Start using ts-loader in your project by running `npm i ...
Read more >
To v4 from v3 - webpack
When still using the json-loader , it can be removed: webpack.config.js module.exports = { // ... rules: [ { - test: /\.json$/, -...
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