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

Couldn't find any webpack configurations in any CRA when running babel-loader-lerna-cra #4

Closed
frendyguo-zz opened this issue Jan 15, 2019 · 4 comments

Comments

@frendyguo-zz
Copy link

After setting up my babel-loader-lerna-cra's configurations, the loader is able to find the locations of my react app (CRA, not ejected), however it couldn't the webpack.config js-es

Is this the expected behaviour?

@jupadev
Copy link

jupadev commented Jan 17, 2019

I'm having the same issue, trying to get webpack.config.dev.js

this is the node module folder
image

babel-lerna-loader-cra: copying: my-react-app/... webpack.config.dev.js => backup.webpack.config.dev.js
ENOENT: no such file or directory, stat '/Users/thirdlove-mac/Documents/projects/monorepos/button/packages/my-react-app/node_modules/react-scripts/config/webpack.config.dev.js

@dnsmob
Copy link

dnsmob commented Jan 25, 2019

i rolled back the dependency of react-scripts in the project to version 2.0.5 and it worked fine. it must've been that change as currently CRA uses 2.1.3 and the webpack.dev or webpack.prod do not exist anymore. there are far more changes than i understand in the configs, so the easy way out is to just roll back the version. cheap solution, but seems to work.

@frendyguo-zz
Copy link
Author

Yup, I tried using the exact same version of react-scripts (2.0.5 in this case), and it worked perfectly

@frendyguo-zz
Copy link
Author

Closing

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

3 participants