react-native
react-native copied to clipboard
ESLint couldn't find the config "@react-native-community" to extend from. Please check that the name of the config is correct.
Description
When I run yarn lint in terminal, the error appears:
Oops! Something went wrong! :(
ESLint: [8](https://github.com/vidapp-com/frontend/actions/runs/7438830474/job/20238004032?pr=402#step:8:9).56.0
ESLint couldn't find the config "@react-native-community" to extend from. Please check that the name of the config is correct.
The config "@react-native-community" was referenced from the config file in "/home/runner/work/frontend/frontend/packages/tv/.eslintrc.js".
If you still have problems, please stop by https://eslint.org/chat/help to chat with the team.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 2.
Steps to reproduce
Run 'yarn lint' in the root of project
React Native Version
0.72.7
Affected Platforms
Runtime - Android
Output of npx react-native info
System:
OS: macOS 13.2.1
CPU: (8) x64 Apple M1
Memory: 153.67 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.19.0
Yarn: 1.18.0
npm: 6.14.18
Watchman: 2023.12.04.00 - /opt/homebrew/bin/watchman
SDKs:
Android SDK:
API Levels: 28, 29, 30, 31, 32, 33, 34
Build Tools: 28.0.3, 29.0.2, 30.0.2, 30.0.3, 33.0.0, 33.0.2
System Images: android-30 | Google APIs ARM 64 v8a, android-30 | Google Play ARM 64 v8a, android-31 | Google APIs ARM 64 v8a, android-31 | Google Play ARM 64 v8a, android-33 | Google APIs ARM 64 v8a, android-33 | Google Play ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8512546
Stacktrace or Logs
Run cd packages/tv && yarn lint
yarn run v1.18.0
$ eslint . --ext .js,.jsx,.ts,.tsx
Oops! Something went wrong! :(
ESLint: 8.56.0
ESLint couldn't find the config "@react-native-community" to extend from. Please check that the name of the config is correct.
The config "@react-native-community" was referenced from the config file in "/home/runner/work/frontend/frontend/packages/tv/.eslintrc.js".
If you still have problems, please stop by https://eslint.org/chat/help to chat with the team.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 2.
Reproducer
https://github.com/react-native-community/reproducer-react-native
Screenshots and Videos
No response
| :warning: | Newer Version of React Native is Available! |
|---|---|
| :information_source: | You are on a supported minor version, but it looks like there's a newer patch available - 0.72.8. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
| :warning: | Missing Reproducible Example |
|---|---|
| :information_source: | We could not detect a reproducible example in your issue report. Please provide either:
|
Cannot reproduce. Please provide a valid reproducer @leminhcse
Are you by chance installing @react-native/eslint-config (different name), but referring to old name of package?
Hi @cortinico , @NickGerleman , I tried to installing @react-native/eslint-config but this can not fix my issue !
At now, I have temporarily disable it extends: '@react-native-community' from esclintrc.js and it works !
I got this same error after following this tutorial: https://medium.com/@josiahmahachi/how-to-set-up-eslint-in-vs-code-for-react-native-applications-that-use-typescript-7a103f264d6d
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.