Recently, while using neovim for TypeScript development, I decided to upgrade eslint to version 8.28.0. However, upon opening neovim, I encountered an error. Despite several attempts to troubleshoot the issue, I have been unsuccessful in resolving it on my own. Therefore, I am seeking assistance to fix this problem.
❴eslint_d❵ [eslint] Error: Failed to load plugin 'import declared in '.eslintrc.js » eslint-config-semistandard »
eslint-config-standard': Cannot find module 'eslint' Require stack:
- /Users/jornajan/Coding/bilibili/muke/miProject/node_modules/eslint-plugin-import/lib/ExportMap.js
- /Users/jornajan/Coding/bilibili/muke/miProject/node_modules/eslint-plugin-import/lib/rules/named.js
$ node -v
18.12.1
$ npm -v
9.1.3
I'm unsure if this is a bug or not. Any guidance on how to rectify this situation would be greatly appreciated.