question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CRA depends on eslint-plugin-testing-library@^3.9.2

See original GitHub issue

The 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:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ljosberinncommented, Oct 30, 2020

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.

0reactions
ljosberinncommented, Nov 27, 2020

hmmm… adding @typescript-eslint/eslint-plugin within resolutions maybe help 🤔 gotta explore that as easy trick around

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found