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

[uncaughtException] Cannot read properties of undefined (reading 'lintFiles') #502

Open
GaborTorma opened this issue Sep 22, 2024 · 0 comments

Comments

@GaborTorma
Copy link

GaborTorma commented Sep 22, 2024

Environment


  • Operating System: Linux
  • Node Version: v22.8.0
  • Nuxt Version: 3.13.2
  • CLI Version: 3.13.2
  • Nitro Version: 2.9.7
  • Package Manager: [email protected]
  • Builder: -
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Package

@nuxt/eslint

Reproduction

https://github.com/GaborTorma/nuxt-eslint-vs-code-js-debug-terminal-error4

You need to clone it and start with VS Code and run pnpm i
If you run pnpm dev in bash -> no error
If you run pnpm dev in VS Code JS Debugger terminal -> got error.

Describe the bug

The issue is same with #338, but now the workaround not working. The configType is defined to flat and the error shown.

ERROR  [uncaughtException] Cannot read properties of undefined (reading 'lintFiles')
  at lintFiles (node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]_@[email protected][email protected]_/node_modules/vite-plugin-eslint2/dist/shared/vite-plugin-eslint2.f755bcfe.mjs:270:119)
  at MessagePort.<anonymous> (node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]_@[email protected][email protected]_/node_modules/vite-plugin-eslint2/dist/worker.mjs:37:3)

Additional context

No response

Logs

No response

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

1 participant