I built a new application with the create-react-app scaffolding. I want to use react-app-rewired in my project, but when I execute react-app-rewired start, I reported the following error. Where is the problem please?
Problem:
Cannot find module 'myprojectpathnode_modulesreact-scripts/config/webpack.config.dev'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:603:15)
at Function.Module._load (internal/modules/cjs/loader.js:529:25)
at Module.require (internal/modules/cjs/loader.js:657:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.
at Module._compile (internal/modules/cjs/loader.js:721:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
at Function.Module._load (internal/modules/cjs/loader.js:552:3)
error Command failed with exit code 1.
I have this problem too...
P.S. yarn warned warning " > [email protected]" has incorrect peer dependency "react-scripts@^1.0.14".
把 react-scripts 包版本降低
"react-app-rewired": "^1.6.2",
"react-scripts": "^1.0.14",
@SagaciousLittle
@tyde7
Just switch to CRACO JS (crafted for CRA V2) Edit: Well Craco is broken too since react-scripts 2.1.2
https://github.com/sharegate/craco
same to me
This is the problem with react-scripts 2.1.2, which happened four days ago.

This is the quickest way to solve the problem:
$ yarn add [email protected]
or
$ npm install [email protected] --save
This is the problem with react-scripts 2.1.2, which happened four days ago.
This is the quickest way to solve the problem:
$ yarn add [email protected]or
$ npm install [email protected] --save
Thanks, it is a Version issue
这是四天前发生的react-scripts 2.1.2的问题。
这是解决问题的最快方法:
$ yarn add [email protected]要么
$ npm install [email protected] --save
thanks
I used "react-app-rewire-less": "^2.1.3", and I have the same problem
create-react-app:2.1.1
"react-app-rewire-less": "^2.1.3",
"react-app-rewired": "^1.6.2",
I try [email protected], it works fine.
Most helpful comment
This is the problem with react-scripts 2.1.2, which happened four days ago.
This is the quickest way to solve the problem:
or