Definition for rule 'react/no-unstable-nested-components' was not found
karlhorky opened this issue · comments
Currently, there is an error with the ESLint config, where it is complaining that a certain ESLint rule was not found:
Definition for rule 'react/no-unstable-nested-components' was not found
This primarily affects create-react-app
, which creates the following dependency in yarn.lock
, even though it's not the latest version of eslint-plugin-react
:
eslint-plugin-react@^7.21.5:
version "7.22.0"
...
react-scripts@4.0.3:
version "4.0.3"
...
dependencies:
...
eslint-plugin-react "^7.21.5"
This will not show up right away in the editor or in ESLint on the command line, but it will show up when you start a create-react-app
application with yarn start
:
The workaround is to add a resolutions
field (for Yarn Resolutions) to the package.json
:
"resolutions": {
"eslint-plugin-react": "7.23.2"
}
@Josehower can you add a new line to the setup commands for this?
Fixed in #50