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.

Failed to load flowtype plugin

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:26
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

34reactions
daniel-sullivancommented, 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.

16reactions
Bardiamistcommented, Jan 20, 2022

Still actual in react-native 0.67.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to load plugin 'flowtype' declared in 'package.json ...
I created a new React project with create-react-app . In the terminal npm start . Instantly get this error. Failed to load plugin...
Read more >
ESLint error - Failed to load plugin 'flowtype' - YouTrack
What steps will reproduce the issue? 1. Install WebStorm and React native (according to docs https://reactnative.dev/docs/environment-setup)
Read more >
Failed to load plugin 'flowtype' declared in 'package.json ...
Coding example for the question Failed to load plugin 'flowtype' declared in 'package.json » eslint-config-react-app': Cannot find module ...
Read more >
failed to load plugin 'flowtype' declared in 'baseconfig - You.com
ERROR in Failed to load plugin 'flowtype' declared in 'package.json » eslint-config-react-app': Cannot find module 'eslint/use-at-your-own-risk' Require ...
Read more >
eslint-plugin-flowtype - npm
Flowtype linting rules for ESLint.. Latest version: 8.0.3, last published: a year ago. Start using eslint-plugin-flowtype in your project by ...
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