CRA 3.3.0 - webpack unknown rule
See original GitHub issueUpgrading 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:
- Created 4 years ago
- Reactions:8
- Comments:24 (2 by maintainers)
Top 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 >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
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",
So this error occurs when I run
export NODE_ENV=production