Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't find webpack.config.dev #345

Closed
SagaciousLittle opened this issue Dec 25, 2018 · 11 comments
Closed

can't find webpack.config.dev #345

SagaciousLittle opened this issue Dec 25, 2018 · 11 comments

Comments

@SagaciousLittle
Copy link

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 'myprojectpath\node_modules\react-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. (myprojectpath\node_modules\react-app-rewired\scripts\start.js:9:23)
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.

@tyde7
Copy link

tyde7 commented Dec 26, 2018

I have this problem too...

@tyde7
Copy link

tyde7 commented Dec 26, 2018

P.S. yarn warned warning " > react-app-rewired@1.6.2" has incorrect peer dependency "react-scripts@^1.0.14".

@Ans1998
Copy link

Ans1998 commented Dec 26, 2018

把 react-scripts 包版本降低
"react-app-rewired": "^1.6.2",
"react-scripts": "^1.0.14",

@AndyOGo
Copy link

AndyOGo commented Dec 26, 2018

@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

@wuxiii
Copy link

wuxiii commented Dec 27, 2018

same to me

@xnng
Copy link

xnng commented Dec 27, 2018

This is the problem with react-scripts 2.1.2, which happened four days ago.

image

This is the quickest way to solve the problem:

$ yarn add react-scripts@2.1.1

or

$ npm install react-scripts@2.1.1 --save

@wuxiii
Copy link

wuxiii commented Dec 27, 2018

This is the problem with react-scripts 2.1.2, which happened four days ago.

image

This is the quickest way to solve the problem:

$ yarn add react-scripts@2.1.1

or

$ npm install react-scripts@2.1.1 --save

Thanks, it is a Version issue

@SagaciousLittle
Copy link
Author

这是四天前发生的react-scripts 2.1.2的问题。

图片

这是解决问题的最快方法:

$ yarn add react-scripts@2.1.1

要么

$ npm install react-scripts@2.1.1 --save

thanks

@951565664
Copy link

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",

@951565664
Copy link

I try react-scripts@2.1.1, it works fine.

@timarney
Copy link
Owner

#343

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants