{"id":639,"hash":"15dab66b3aa3f278379ab0076674c262ab9c73db1f9253c1903cad63c1303a8f","pattern":"Cannot find module &#39;@typescript-eslint/parser&#39; when using Prettier Eslint","full_message":"I'm getting the following error from Prettier Eslint Output on VSCode when saving the file.\n\nError: Cannot find module '@typescript-eslint/parser'\nRequire stack:\n- c:\\Users\\vtnor\\.vscode\\extensions\\rvest.vs-code-prettier-eslint-0.4.1\\dist\\extension.js\n- c:\\Program Files\\Microsoft VS Code\\resources\\app\\out\\vs\\loader.js\n- c:\\Program Files\\Microsoft VS Code\\resources\\app\\out\\bootstrap-amd.js\n- c:\\Program Files\\Microsoft VS Code\\resources\\app\\out\\bootstrap-fork.js\n\nMy package json is:\n\n[...]\n\"typescript\": \"^4.2.2\",\n\"@typescript-eslint/eslint-plugin\": \"^4.16.1\",\n\"@typescript-eslint/parser\": \"^4.16.1\",\n\"eslint\": \"^7.21.0\",\n\"prettier\": \"^2.2.1\",\n\"prettier-eslint\": \"^12.0.0\",\n[...]","ecosystem":"npm","package_name":"typescript","package_version":null,"solution":"I actually had this problem the other day; you need to go to your .eslintrc\nand make sure that the module is there under the parser property of the config. Should look something like this in the end:\n\n{\n  //...\n\n  \"extends\": [\n    \"eslint:recommended\",\n    \"plugin:@typescript-eslint/eslint-recommended\",\n    \"plugin:@typescript-eslint/recommended\",\n    \"prettier/@typescript-eslint\",\n    \"plugin:prettier/recommended\"\n  ],\n  \"parser\": \"@typescript-eslint/parser\",\n  \"plugins\": [\n    \"@typescript-eslint\"\n  ],\n\n  //...\n}\n\nThis should cover the essentials regarding dependencies in your linter. Hope it helps.\n\nEdit\n\nI checked GitHub for this issue, might not be the same as the one I had, check this link please.","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/66444572/cannot-find-module-typescript-eslint-parser-when-using-prettier-eslint","votes":28,"created_at":"2026-04-19T04:51:25.712022+00:00","updated_at":"2026-04-19T04:51:25.712022+00:00"}