Skip to content

Error: Cannot find module 'vue-eslint-parser' after doing npm install from v10.0.0 #2706

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

Closed
2 tasks done
yamanoku opened this issue Mar 6, 2025 · 1 comment
Closed
2 tasks done

Comments

@yamanoku
Copy link

yamanoku commented Mar 6, 2025

Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have read the FAQ and my problem is not listed.

Tell us about your environment

  • ESLint version: 9.21.0
  • eslint-plugin-vue version: 10.0.0
  • Vue version: 3.5.13
  • Node version: 23.9.0
  • npm version: 10.9.2
  • Operating System: Ubuntu 24.04.2 LTS

What did you expect to happen?

Linting fine as in [email protected]

What actually happened?

When updating eslint-plugin-vue to v10, an error occurred that the module vue-eslint-parser did not exist

https://github.com/yamanoku/vue_portfolio_template/actions/runs/13674391840/job/38231559625?pr=2339

CI Details
Oops! Something went wrong! :(

ESLint: 9.21.0

Error: Cannot find module 'vue-eslint-parser'
Require stack:
- /home/runner/work/vue_portfolio_template/vue_portfolio_template/node_modules/eslint-plugin-vue/lib/configs/base.js
- /home/runner/work/vue_portfolio_template/vue_portfolio_template/node_modules/eslint-plugin-vue/lib/index.js
    at Function._resolveFilename (node:internal/modules/cjs/loader:1405:15)
    at Function.resolve (node:internal/modules/helpers:145:19)
    at Object.<anonymous> (/home/runner/work/vue_portfolio_template/vue_portfolio_template/node_modules/eslint-plugin-vue/lib/configs/base.js:19:23)
    at Module._compile (node:internal/modules/cjs/loader:1734:14)
    at Object..js (node:internal/modules/cjs/loader:1899:[10](https://github.com/yamanoku/vue_portfolio_template/actions/runs/13674391840/job/38231559625?pr=2339#step:6:11))
    at Module.load (node:internal/modules/cjs/loader:1469:32)
    at Function._load (node:internal/modules/cjs/loader:[12](https://github.com/yamanoku/vue_portfolio_template/actions/runs/13674391840/job/38231559625?pr=2339#step:6:13)86:12)
    at TracingChannel.traceSync (node:diagnostics_channel:322:[14](https://github.com/yamanoku/vue_portfolio_template/actions/runs/13674391840/job/38231559625?pr=2339#step:6:15))
    at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
    at Module.require (node:internal/modules/cjs/loader:1491:12)
Error: Process completed with exit code 2.

I saw that vue-eslint-parser moved to peerDependencies at #2670 Is this one related?

Repository to reproduce this issue

@yamanoku
Copy link
Author

yamanoku commented Mar 6, 2025

Sorry! I forgot I had set legacy-peer-deps=true in .npmrc in my repository. I'm closing this Issue 🙇🏼

@yamanoku yamanoku closed this as completed Mar 6, 2025
albe2669 added a commit to rustic-beans/spotify-viewer that referenced this issue Mar 15, 2025
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