Skip to content

ESLint 9 not supported by @lwc/eslint-plugin-lwc #619

Closed
@gdecaen-klint

Description

@gdecaen-klint

Summary

After the creation of a SFDX project, I have an error when I run "npm i" command

Steps To Reproduce:

  1. Create a new SFDX project
  2. Run npm i command on terminal

Expected result

NPM modules should be installed correctly

Actual result

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/eslint
npm error dev eslint@"^9.9.1" from the root project
npm error peer eslint@"^7.5.0 || ^8.0.0 || ^9.0.0" from @babel/[email protected]
npm error node_modules/@babel/eslint-parser
npm error peer @babel/eslint-parser@"^7" from @lwc/[email protected]
npm error node_modules/@lwc/eslint-plugin-lwc
npm error dev @lwc/eslint-plugin-lwc@"^1.1.2" from the root project
npm error
npm error Could not resolve dependency:
npm error peer eslint@"^7 || ^8" from @lwc/[email protected]
npm error node_modules/@lwc/eslint-plugin-lwc
npm error dev @lwc/eslint-plugin-lwc@"^1.1.2" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.

Additional information

VS Code Version: Version: 1.94.0 (user setup)

SFDX CLI Version: @salesforce/cli/2.60.13 win32-x64 node-v20.17.0

OS and version: Windows_NT x64 10.0.26100

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions