Skip to content

[Bug]: Upstream ESLint dependency conflict #7802

@Saveljeffjonatan

Description

@Saveljeffjonatan

System Info

System:
OS: macOS 14.5
CPU: (8) arm64 Apple M1
Memory: 58.61 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.11.0 - /usr/local/bin/node
npm: 10.2.4 - /usr/local/bin/npm
pnpm: 9.4.0 - /usr/local/bin/pnpm
bun: 1.0.26 - ~/.bun/bin/bun
Browsers:
Chrome: 128.0.6613.119
Safari: 17.5

Details

$ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/eslint
npm ERR! dev eslint@"^9.9.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0" from [email protected]
npm ERR! node_modules/eslint-plugin-react-hooks
npm ERR! dev eslint-plugin-react-hooks@"^4.6.2" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Reproduce link

No response

Reproduce Steps

$ npm create rspack@latest

◆ Create Rspack Project

◇ Project name or path
│ testing

◇ Select framework
│ React

◇ Select language
│ TypeScript

◇ Select additional tools (Use to select, to continue)
│ Add ESLint for code linting, Add Prettier for code formatting

◇ Next steps ──╮
│ │
│ cd testing │
│ npm i │
│ npm run dev │
│ │
├───────────────╯

└ Done.

  1. cd [repo]

  2. npm install

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions