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
When using version 3.54.0 of Svelte, installed by Sveltekit, and version 7.0.0-beta.6 of Storybook, installation fails with a dependency error.
It appears to be complaining that @storybook/svelte@^7.0.0-beta.6 is not greater than or equal to 6.4.20, which is not how I remember numbers working 😁
Steps to reproduce the behaviour
npm create svelte@latest frontend (choose Skeleton Project, no TypeScript or Prettier, yes to all other options)
cd frontend; npm install
npx sb@next init (answer yes to all prompts)
npm run storybook (just to check it works at this point; hit ⌃C to stop it once verified)
Add "@storybook/addon-svelte-csf": "^3.0.0-next.1 to package.json
npm install
npm fails to resolve dependencies (see npm resolution error report below)
Expected behaviour
The install is successful and, after making the documented changes to .storybook/main.cjs, I can go on to write stories in Svelte syntax.
Screenshots and/or logs
# npm resolution error report
2022-12-14T13:43:33.827Z
While resolving: [email protected]
Found: @storybook/[email protected]
node_modules/@storybook/svelte
dev @storybook/svelte@"^7.0.0-beta.6" from the root project
Could not resolve dependency:
peer @storybook/svelte@">=6.4.20" from @storybook/[email protected]
node_modules/@storybook/addon-svelte-csf
dev @storybook/addon-svelte-csf@"^3.0.0-next.1" from the root project
Fix the upstream dependency conflict, or retry
this command with --force, or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.
Raw JSON explanation object:
{
"code": "ERESOLVE",
"current": {
"name": "@storybook/svelte",
"version": "7.0.0-beta.6",
"whileInstalling": {
"name": "frontend",
"version": "0.0.1",
"path": "/Users/me/Desktop/frontend"
},
"location": "node_modules/@storybook/svelte",
"isWorkspace": false,
"dependents": [
{
"type": "dev",
"name": "@storybook/svelte",
"spec": "^7.0.0-beta.6",
"from": {
"location": "/Users/me/Desktop/frontend"
}
}
]
},
"currentEdge": {
"type": "dev",
"name": "@storybook/svelte",
"spec": "^7.0.0-beta.6",
"from": {
"location": "/Users/me/Desktop/frontend"
}
},
"edge": {
"type": "peer",
"name": "@storybook/svelte",
"spec": ">=6.4.20",
"error": "INVALID",
"from": {
"name": "@storybook/addon-svelte-csf",
"version": "3.0.0-next.1",
"whileInstalling": {
"name": "frontend",
"version": "0.0.1",
"path": "/Users/me/Desktop/frontend"
},
"location": "node_modules/@storybook/addon-svelte-csf",
"isWorkspace": false,
"dependents": [
{
"type": "dev",
"name": "@storybook/addon-svelte-csf",
"spec": "^3.0.0-next.1",
"from": {
"location": "/Users/me/Desktop/frontend"
}
}
]
}
},
"strictPeerDeps": false,
"force": false
}
I cannot get Sveltekit + Storybook 6 to work at all, despite following several contradictory guides. Storybook 7 at least works, but without addon-svelte-csf, it appears to be a major pain to use slots — so I really need to work out what's going on here, as Storybook's not likely to get adopted here if it's a major pain…
The text was updated successfully, but these errors were encountered:
Describe the bug
When using version 3.54.0 of Svelte, installed by Sveltekit, and version 7.0.0-beta.6 of Storybook, installation fails with a dependency error.
It appears to be complaining that
@storybook/svelte@^7.0.0-beta.6
is not greater than or equal to 6.4.20, which is not how I remember numbers working 😁Steps to reproduce the behaviour
npm create svelte@latest frontend
(choose Skeleton Project, no TypeScript or Prettier, yes to all other options)cd frontend; npm install
npx sb@next init
(answer yes to all prompts)npm run storybook
(just to check it works at this point; hit ⌃C to stop it once verified)"@storybook/addon-svelte-csf": "^3.0.0-next.1
to package.jsonnpm install
Expected behaviour
The install is successful and, after making the documented changes to .storybook/main.cjs, I can go on to write stories in Svelte syntax.
Screenshots and/or logs
package.json
:Environment
Additional context
I cannot get Sveltekit + Storybook 6 to work at all, despite following several contradictory guides. Storybook 7 at least works, but without addon-svelte-csf, it appears to be a major pain to use slots — so I really need to work out what's going on here, as Storybook's not likely to get adopted here if it's a major pain…
The text was updated successfully, but these errors were encountered: