Error: Cannot find module '@typescript-eslint/parser'
When I tried to execute 'Format Document With Prettier-Eslint' in VS Code, it outputs:
Error: Cannot find module '@typescript-eslint/parser'
Require stack:
- c:\Users\<UserName>\.vscode\extensions\rvest.vs-code-prettier-eslint-3.0.2\dist\extension.js
- c:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js
- c:\Program Files\Microsoft VS Code\resources\app\out\bootstrap-amd.js
- c:\Program Files\Microsoft VS Code\resources\app\out\bootstrap-fork.js
I have installed it locally, but it didn't work.
I also tried to erase the local node_modules
and reinstall it, but it seemed useless.
Here is my folder's structure:
folder_root
|--node_modules
|--@eslint\eslintrc\
...
|--@typescript-eslint
|--eslint-plugin\
|--parser\
|--types\
|--experimental-utils\
|--typescript-estree\
|--visitor-keys\
...
|--eslint\ @7.25.0
...
|--prettier\ @2.2.1
|--prettier-eslint\ @12.0.0
...
.eslintrc.js
.prettierrc
package-lock.json
package.json
...
Is there any other information to provide?