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

Problem with eslint v8 - Failed to load plugin 'gridsome' #143

Open
tennox opened this issue Oct 27, 2022 · 1 comment
Open

Problem with eslint v8 - Failed to load plugin 'gridsome' #143

tennox opened this issue Oct 27, 2022 · 1 comment

Comments

@tennox
Copy link

tennox commented Oct 27, 2022

Tell us about your environment

  • ESLint version: 8.25.0
  • eslint-plugin-�gridsome version: 1.6.2
  • Node version: 16

Please show your full configuration:

module.exports = {
  parser: 'vue-eslint-parser',
  extends: [
    'standard',
    'plugin:gridsome/recommended',
    'plugin:vue/vue3-recommended'
  ],
}

What did you do?

eslint --ext .js,.vue src/file.vue

What actually happened?

Oops! Something went wrong! :(

ESLint: 8.26.0

TypeError: Failed to load plugin 'gridsome' declared in '.eslintrc.js': Class extends value undefined is not a constructor or null
Referenced from: /home/manu/dev/project/.eslintrc.js
    at Object.<anonymous> (/home/manu/dev/project/node_modules/.pnpm/@typescript-eslint+experimental-utils@3.10.1_wyqvi574yv7oiwfeinomdzmc3m/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint/CLIEngine.js:12:34)
    at Module._compile (node:internal/modules/cjs/loader:1126:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
    at Module.load (node:internal/modules/cjs/loader:1004:32)
    at Function.Module._load (node:internal/modules/cjs/loader:839:12)
    at Module.require (node:internal/modules/cjs/loader:1028:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/home/manu/dev/project/node_modules/.pnpm/@typescript-eslint+experimental-utils@3.10.1_wyqvi574yv7oiwfeinomdzmc3m/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint/index.js:14:14)
    at Module._compile (node:internal/modules/cjs/loader:1126:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
 ELIFECYCLE  Command failed with exit code 2.

Downgrade to v7 fixes the problem

@tyankatsu0105
Copy link
Member

Thanks for the issue.
This plugin has not support ESLint v8 yet.
We just do this problem.
So please wait until we finish do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants