-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
[BUG] in version 5.0.0 react eslint plugins #11759
Comments
i think removing the eslint-config-react-app fixed the confliction issue |
Although this might |
I'm also getting this with Yarn 3.1.1. If I don't add
This is despite this being a dependency of create-react-app. If you add this package manually, then it will cause this conflict as from yarn's point of view, there are two packages with the same name. Looking at Beyond pulling out react-app from my eslint config (which is non-ideal), I'm not really sure how to resolve this. |
Looking into the codebase, it looks like the issue, once you've installed eslint-config-react-app manually, is that the eslint config is being setup with webpack. So that suggests that we can just rip out the lines in package.json loading react-app. However, I'm not sure if this will effect eslint within vscode (since that should be reading the eslint config from either package.json or .eslintrc.json, without going through webpack). A solution to this is you can stop webpack from running eslint by seeing the environment variable DISABLE_ESLINT_PLUGIN to true. Though I'm not sure what repercussions this will have. |
Possible answer: In upgrading from 4 to 5 I found I had to update the package "eslint-plugin-testing-library" to just get the app running. However, I'm here looking for how to overcome all these warnings now that the app is running. They all have: |
Same issue - I notice the cases are different between desktop and Desktop - maybe it's trying to be case specific. |
@mrssnow hi not i did the reaserch about that an no |
But I didn't install anything manually and got the same issue. Either way, shouldn't have to downgrade React to fix a problem. |
I had the same issue but was able to resolve it using mrssnow's comment regarding case sensitivity. I too had used a lowercase d instead of an uppercase D in my directory path. |
One temporary solution for people using yarn 2/3's pnp, you can open |
Removing the duplicate package from |
I am sorry, I am not experienced enough to know what else to do. I can only say that changing the case from uppercase to lowercase on my documents directory path fixed this issue for me.
Sent from Yahoo Mail on Android
On Mon, Jan 10, 2022 at 6:26 AM, ***@***.***> wrote:
I'm also getting this with Yarn 3.1.1. If I don't add eslint-config-react-app to the dependencies, then it will complain with:
Error in Failed to load config "react-app" to extend from
This is despite this being a dependency of create-react-app. If you add this package manually, then it will cause this conflict as from yarn's point of view, there are two packages with the same name. Looking at .pnp.cjs it will list this twice, showing it has pulled the zip twice.
Beyond pulling out react-app from my eslint config (which is non-ideal), I'm not really sure how to resolve this.
Removing the duplicate package from yarn.lockfixed the issue for now. Not ideal but it worked
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you commented.Message ID: ***@***.***>
|
I experienced this same issue and resolved it by removing this from my package.json:
I was trying to configure also in my .eslintrc.json, so I suppose it was complaining about it being configured in two places. |
Scratch that, it resolved it for me locally, but it did not resolve it for a coworker. In the end I just removed |
been experiencing the same error. After trying a few different tactics seen here, mrssnow's solution about making sure both directory paths have the same things capitalized or lowercased fixed it for me. |
I encountered this issue today, after trying to upgrade from 4.0.3 to 5.0.0, after some research, checking the |
Describe the bug
Once i do create my app and without changing anything the first error i get is react plugin confliction
i will paste the error here
ERROR in Plugin "react" was conflicted between "package.json » eslint-config-react-app » C:\Users\user\desktop\mkd\my-app\node_modules\eslint-config-react-app\base.js" and "BaseConfig » C:\Users\user\Desktop\mkd\my-app\node_modules\eslint-config-react-app\base.js".
and then if i ignore this one i get the error of that i can not do import from outside package
Did you try recovering your dependencies?
(Write your answer here.)
Yes i tried few times
and i think the error is in the react scripts
so that why i found two main solutions
Which terms did you search for in User Guide?
(Write your answer here if relevant.)
Almost find nothing that why i think that this is a bug
Environment
(paste the output of the command here.)
$ npx create-react-app --info
Environment Info:
current version of create-react-app: 5.0.0
running from C:\Users\user\AppData\Roaming\npm\node_modules\create-react-app
System:
OS: Windows 10 10.0.19043
CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
Binaries:
Node: 16.13.1 - C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm: 8.1.2 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: Not Found
Edge: Spartan (44.19041.1266.0), Chromium (96.0.1054.53)
Internet Explorer: 11.0.19041.1202
npmPackages:
react: Not Found
react-dom: Not Found
react-scripts: Not Found
npmGlobalPackages:
create-react-app: Not Found
Steps to reproduce
(Write your steps here:)
1.npx create react app
2. npm start
3.the error
Expected behavior
(Write what you thought would happen.)
openning project without error
installing outside package and run it and import it without any problem
Actual behavior
(Write what happened. Please add screenshots!)
the react app should start noramlly but the app start with confliction error in plugins react
although when installing another package no import can be done
Reproducible demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
The text was updated successfully, but these errors were encountered: