Next.js Discord

Discord Forum

Failed to load parser @typescript-eslint/parser

Unanswered
Longtail tuna posted this in #help-forum
Open in Discord
Longtail tunaOP
I'm attempting to upgrade to 15, but I'm having a slight issue with eslint. When running npm lint or npx next lint I'm getting the following error:

Failed to load parser '@typescript-eslint/parser' declared in '../../app/code-server/lib/vscode/node_modules.asar/socks/.eslintrc.cjs': Cannot find module '@typescript-eslint/parser'
Require stack:
- /app/code-server/lib/vscode/node_modules.asar/socks/.eslintrc.cjs

@typescript-eslint/parser@latest is installed locally and globally.

When running npx next build it seems to run lint fine. Not really sure where I'm going wrong, but any help would be appreciated.

0 Replies