CRA depends on eslint-plugin-testing-library@^3.9.2
See original GitHub issueThe latest release of eslint-config-galex
bumps eslint-plugin-testing-library
to version 3.10.0
, which is incompatible with react-scripts
v4.0. As a result, I’m getting the following error:
Definition for rule ‘testing-library/no-await-sync-events’ was not found testing-library/no-await-sync-events
I’m using NPM so I can’t yet override module resolutions.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Post CRA v5 Update - App Broken · Discussion #542
Failed to load plugin 'testing-library' declared in '.eslintrc': Class extends value undefined is not a constructor or null.
Read more >eslint-plugin-testing-library
Start using eslint-plugin-testing-library in your project by running `npm i eslint-plugin-testing-library`. There are 944 other projects in ...
Read more >My create-react-app is failing to compile due to ESLint error
Go to node_modules/react-scripts/config/webpack.config.js and make the following changes ... non-ejected CRA, Eslint v7 version of the app.
Read more >failed to load config "react-app/jest" to extend from
I have a Nextjs app using jest and react-testing-library for the test, I add the .eslintrc file with npx .eslintrc --init command to...
Read more >Relay
Relay applies and relies on GraphQL best practices. ... eslint^7.11.0. eslint-config-react-app^6.0.0 ... eslint-plugin-testing-library^3.9.2.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m afraid that’s the world we live in with CRA. Hence the pre-4.0 solution of explicitly installing
@typescript-eslint
too.Manually checking which rule is included in CRAs version involves some overhead; right now it’s small. The larger issue to me would be having to sync this repos implementation with the upgrade path of CRA. That doesn’t feel right as a gut reaction. I’ll think about it.
hmmm… adding
@typescript-eslint/eslint-plugin
withinresolutions
maybe help 🤔 gotta explore that as easy trick around