You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating eslint from ver 7.32.0 to 8.1.0. I got this error: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Failed to load plugin 'flowtype' declared in '--config » @react-native-community/eslint-config#overrides[0]': Package subpath './lib/rules/no-unused-expressions' is not defined by "exports" in /app/node_modules/eslint/package.json
Version
0.66.1
Output of react-native info
System:
OS: macOS 12.0.1
CPU: (8) arm64 Apple M1
Memory: 138.23 MB / 8.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.6.0 - /usr/local/bin/node
Yarn: Not Found
npm: 7.24.0 - /usr/local/bin/npm
Watchman: 2021.09.27.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.2 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.0.1, iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0
Android SDK:
API Levels: 29, 30, 31
Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.2, 31.0.0
System Images: android-31 | Google APIs ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2020.3 AI-203.7717.56.2031.7678000
Xcode: 13.1/13A1030d - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_292 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: ^17.0.2 => 17.0.2
react-native: ^0.66.1 => 0.66.1
react-native-macos: Not Found
npmGlobalPackages: react-native: Not Found
Steps to reproduce
Just install latest eslint
Snack, code example, screenshot, or link to a repository
No response
Reacted by Jan Ziemba, Kimmy Wang, Abe Dolinger, Benno, Alvin Huang, Yaroslav Serhieiev, Shota Nakahara, JPL, snkvch, SimonIT and 18 more
For anyone else with the same issue who is also completely new to React Native, changing "eslint": "8.2.0" as generated by the creation script to "eslint": "7.32.0" and then running "yarn install" seems to fix this issue.
Reacted by Frieder Bluemle, Jason Allshorn, minglam138, Enden, Rossy, Brad F., Christian Lowe, mgplayer47, Kenneth*, Reagan Middlebrook and 16 more
Reacted by José Andrés Hernández Vargas and Anton
Reacted by Kenneth*, Mahidhar and Mohammed Mudassir
Reacted by Kei-Neurio and Morozhkaa
Reacted by MahiDev, Shahzaib Ali Sherazi, Mohammed Mudassir and Bryce Magee
Reacted by Alexander Pataridze, Gabriel Bull, Alun Davey, David Guerin, abayram, Evan Walsh, alexfov, Michiel Leunens, Josh Birdwell, Honza Jerabek and 6 more
For anyone else with the same issue who is also completely new to React Native, changing "eslint": "8.2.0" as generated by the creation script to "eslint": "7.32.0" and then running "yarn install" seems to fix this issue.
Thanks....this worked for me too
Reacted by Eunho (Cayde), 一脸懵逼, Jonas Davidson and Maksym Ivanov
For anyone else with the same issue who is also completely new to React Native, changing "eslint": "8.2.0" as generated by the creation script to "eslint": "7.32.0" and then running "yarn install" seems to fix this issue.
For anyone else with the same issue who is also completely new to React Native, changing "eslint": "8.2.0" as generated by the creation script to "eslint": "7.32.0" and then running "yarn install" seems to fix this issue.
Activity
kimmy-wang commentedon Nov 5, 2021
Same issue.
daniel-sullivan commentedon Nov 6, 2021
For anyone else with the same issue who is also completely new to React Native, changing "eslint": "8.2.0" as generated by the creation script to "eslint": "7.32.0" and then running "yarn install" seems to fix this issue.
Romick2005 commentedon Nov 6, 2021
The problem here that
@react-native-community/eslint-config uses old version of
but it should be updated to the latest 5.3.0
Bardiamist commentedon Jan 20, 2022
Still actual in react-native 0.67.0
mwmcode commentedon Mar 4, 2022
Right. Found issue opened here #33169
Pat-Gekoski commentedon Mar 23, 2022
Thanks....this worked for me too
Lock eslint to 7.x
Update packages. Eslint limited to 7.32 bc of eact-native-community/e…
Gujejiani commentedon May 21, 2022
wi
thanks man
maximfreerider commentedon Jul 4, 2022
thx a lot
benomatis commentedon Nov 24, 2022
Upgrading
@react-native-community/eslint-configto^3.2.0with eslint 8 should clear this error (3.0.0did not).Bardiamist commentedon Nov 25, 2022
My temp workaround:
@react-native-community/eslint-configto2.0.0yarn@react-native-community/eslint-configback to latest versiongithub-actions commentedon Apr 1, 2024
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.
github-actions commentedon Apr 8, 2024
This issue was closed because it has been stalled for 7 days with no activity.