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
JReinhold
changed the title
[Bug]: init fails in React+Vite+npm because of conflicting versions of @typescript-eslint/utils
[Bug]: init fails in React+Vite+npm because of conflicting versions of eslintSep 25, 2024
Also, when installing npx storybook@latest init, the script looks for .eslintrc, the legacy config format. While still supported in ESLint v9, this config format is deprecated and will be removed in ESLint v10. So this also needs to be fixed.
Describe the bug
When initting Storybook in a fresh Vite+React project with npm, it ends with this from npm, and never continues:
Indicating that the
init
failed, but it's "just" npm that never installs any dependencies.To summarize:
eslint-plugin-storybook
->@typescript-eslint/utils@"^5.62.0
-> peereslint@"^6.0.0 || ^7.0.0 || ^8.0.0"
[email protected]
in projectI'd expect this to be a problem in any project that uses eslint v9, not just Vite+React.
Reproduction link
see steps below
Reproduction steps
npm create vite test-sb-init -- --template react-ts
cd test-sb-init
npm install
npx storybook@latest init
System
Additional context
No response
The text was updated successfully, but these errors were encountered: