Skip to content
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

Failed to load flowtype plugin #32528

Closed
Romick2005 opened this issue Nov 3, 2021 · 12 comments
Closed

Failed to load flowtype plugin #32528

Romick2005 opened this issue Nov 3, 2021 · 12 comments
Labels
Flow Needs: Triage 🔍 Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@Romick2005
Copy link
Contributor

Description

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

@kimmy-wang
Copy link

Same issue.

@daniel-sullivan
Copy link

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
Copy link
Contributor Author

The problem here that
@react-native-community/eslint-config uses old version of

    "@typescript-eslint/eslint-plugin": "^4.22.1",
    "@typescript-eslint/parser": "^4.22.1",

but it should be updated to the latest 5.3.0

@Bardiamist
Copy link
Contributor

Still actual in react-native 0.67.0

@mwmcode
Copy link

mwmcode commented Mar 4, 2022

The problem here that @react-native-community/eslint-config uses old version of

    "@typescript-eslint/eslint-plugin": "^4.22.1",
    "@typescript-eslint/parser": "^4.22.1",

but it should be updated to the latest 5.3.0

Right. Found issue opened here #33169

@Pat-Gekoski
Copy link

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

CodingItWrong added a commit to CodingItWrong/nativeup that referenced this issue Mar 29, 2022
dev-fredericfox added a commit to dev-fredericfox/react-native-markdown-display-custom that referenced this issue Apr 14, 2022
@Gujejiani
Copy link

wi

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 man

@maximfreerider
Copy link

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

thx a lot

@benomatis
Copy link

Upgrading @react-native-community/eslint-config to ^3.2.0 with eslint 8 should clear this error (3.0.0 did not).

@Bardiamist
Copy link
Contributor

My temp workaround:

  1. Change @react-native-community/eslint-config to 2.0.0
  2. yarn
  3. Change @react-native-community/eslint-config back to latest version

Copy link

github-actions bot commented 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 github-actions bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Apr 1, 2024
Copy link

github-actions bot commented Apr 8, 2024

This issue was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Flow Needs: Triage 🔍 Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests