Skip to content

Cannot find module '@typescript-eslint/types' #450

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
stalkerg opened this issue Apr 27, 2023 · 0 comments · Fixed by #451
Closed
2 tasks done

Cannot find module '@typescript-eslint/types' #450

stalkerg opened this issue Apr 27, 2023 · 0 comments · Fixed by #451

Comments

@stalkerg
Copy link

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.

What version of ESLint are you using?

8.39.0

What version of eslint-plugin-svelte are you using?

2.27.0

What did you do?

Just add the default setup to my config ("plugin:svelte/recommended") and parse some *.js files in the lib folder. I am not using typescript in my project, only JS.

What did you expect to happen?

Should validate my code.

What actually happened?

Error: Failed to load plugin 'svelte' declared in '.eslintrc': Cannot find module '@typescript-eslint/types'
Require stack:
- /home/stalkerg/projects/mjv-art.org/spa/node_modules/eslint-plugin-svelte/lib/rules/no-reactive-reassign.js
- /home/stalkerg/projects/mjv-art.org/spa/node_modules/eslint-plugin-svelte/lib/utils/rules.js
- /home/stalkerg/projects/mjv-art.org/spa/node_modules/eslint-plugin-svelte/lib/index.js
- /home/stalkerg/projects/mjv-art.org/spa/node_modules/@eslint/eslintrc/dist/eslintrc.cjs

Link to GitHub Repo with Minimal Reproducible Example

I will provide repro provide if it's will not clear, from the report. But I suppose fresh installation without TS should be enough.

Additional comments

No response

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

Successfully merging a pull request may close this issue.

1 participant