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

Compatibility with React 17 / react-scripts 4.0.0 #274

Closed
kenbankspeng opened this issue Oct 24, 2020 · 3 comments
Closed

Compatibility with React 17 / react-scripts 4.0.0 #274

kenbankspeng opened this issue Oct 24, 2020 · 3 comments

Comments

@kenbankspeng
Copy link

Does anyone have any insight into potential support for react-scripts 4.0.0 ? Thank you.

I hit a react-app-rewired error when trying to use customize-cra @ 1.0.0 / react-app-rewired @ 2.16 with React 17 / react-scripts@4.0.0

The error does not occur with React 16 and react-scripts 3.

Cannot read property 'use' of undefined
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! start: react-app-rewired start
npm ERR! Exit status 1

@jeggy
Copy link

jeggy commented Oct 24, 2020

This happens because of CRA switched to eslint-webpack-plugin.

But reading through the release notes, they say this:

as it is no longer required to customize the ESLint config.

So to fix this, you just need to remove the useEslintRc from your config-overrides.js. It should still be using your eslintrc file 😃

@kenbankspeng
Copy link
Author

Thank you @jeggy. I removed useEslintRc and the error went away. Maybe some documentation could be added to highlight useEslintRc is not to be used with react-scripts 4.

@trsp400
Copy link

trsp400 commented Dec 22, 2021

This happens because of CRA switched to eslint-webpack-plugin.

But reading through the release notes, they say this:

as it is no longer required to customize the ESLint config.

So to fix this, you just need to remove the useEslintRc from your config-overrides.js. It should still be using your eslintrc file smiley

Thank you! It works for me

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