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

Error: Failed to load plugin 'import' #92

Open
IPWright83 opened this issue Apr 18, 2023 · 0 comments
Open

Error: Failed to load plugin 'import' #92

IPWright83 opened this issue Apr 18, 2023 · 0 comments

Comments

@IPWright83
Copy link
Collaborator

I've started hitting an error recently, which is almost certainly due to configuration somewhere. But I'm a little stumped as to why/how to go about fixing it. Hoping that I might get a little bit of guidance :)

My error is this

Error: Failed to load plugin 'import' declared in '.eslintrc » ../../../.eslintrc': ENOENT: no such file or directory, open '/home/ian/src/webclient/node_modules/.pnpm/[email protected]/node_modules/es-abstract/2021/RequireObjectCoercible.js'
Referenced from: /home/ian/src/webclient/.eslintrc

.eslintrc

{
    "root": true,
    "parser": "@typescript-eslint/parser", 
    "extends": [
        "react-app",
        "airbnb-typescript",
        "prettier",
        "plugin:import/typescript",
        "plugin:json/recommended",
        "plugin:react/jsx-runtime"
    ],
    "globals": {
        "jest": false,
        "describe": false,
        "test": false,
        "expect": false
    },
    "settings": {
        "import/resolver": {
            "node": {
                "paths": ["src"]
            }
        }
    },
    "plugins": [
        "babel",
        "import",
        "react-hooks",
        "react-prefer-function-component",
        "json",
        "lodash"
    ],
...

I'm running a monorepo (this hasn't caused me problems before), the root package.json has the following defined, although my eslint_d is installed globally.

      "eslint": "8.25.0",
        "eslint-config-airbnb": "18.2.1",
        "eslint-config-airbnb-typescript": "14.0.0",
        "eslint-config-prettier": "8.5.0",
        "eslint-config-react-app": "6.0.0",
        "eslint-plugin-babel": "5.3.1",
        "eslint-plugin-flowtype": "8.0.0",
        "eslint-plugin-import": "2.26.0",
        "eslint-plugin-jest": "27.2.1",
        "eslint-plugin-jest-dom": "4.0.3",
        "eslint-plugin-json": "3.1.0",
        "eslint-plugin-jsx-a11y": "6.4.1",
        "eslint-plugin-react": "7.26.1",
        "eslint-plugin-react-hooks": "4.6.0",
        "eslint-plugin-react-prefer-function-component": "0.0.7",
        "eslint-plugin-testing-library": "5.6.4",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant