Skip to content

Error: Cannot find module 'eslint' which is already installed #197

@nikkehtine

Description

@nikkehtine

Describe the bug
Going into the Output > Prettier ESLint tab, I get Error: Cannot find module 'eslint' every time I save the file.
Prettier, ESLint and prettier-eslint are all installed globally on my machine, and the problem persists even when I install them as a dev dependency in my project.

Versions:

  • VS Code Prettier ESLint extension 5.1.0
  • VSCodium: 1.84.2
  • Node: 20.9.0
  • pnpm: 8.10.5
  • prettier: 3.1.0
  • eslint: 8.54.0

System Specifications:

  • OS: Windows 10 22H2
  • Processor: Intel Core i5 4-core 3.5GHz
  • RAM Size: 16 GB

I couldn't find any information on what could cause this issue and how to fix it. If it's out there then I'm terribly sorry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions