You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this doesn't strictly help you but eslint-plugin-react-hooks@next (their next v5 version, currently in rc tags on npm) will fix this. there are probably other workarounds you can do but once that is released it should be the proper fix
can of course use --legacy-peer-deps and/or resolutions in package.json to get the eslint-plugin-react-hooks@next (see facebook/react#28773 for the recently merged pr)
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: testing@1.0.0
npm ERR! Found: eslint@9.9.1
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 eslint-plugin-react-hooks@4.6.2
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.
cd [repo]
npm install
The text was updated successfully, but these errors were encountered: