Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Could not resolve dependency @storybook/svelte@"^6.2.9" from @storybook/[email protected] #44

Closed
francoisromain opened this issue Apr 4, 2022 · 6 comments · Fixed by #56
Labels
bug Something isn't working

Comments

@francoisromain
Copy link
Contributor

Describe the bug

It makes an dependency error, when I try to install addon-svelte-csf with the the following config :

    "@storybook/addon-docs": "6.5.0-alpha.55",
    "@storybook/addon-essentials": "^6.5.0-alpha.55",
    "@storybook/addon-links": "^6.5.0-alpha.55",
    "@storybook/builder-vite": "^0.1.24",
    "@storybook/svelte": "6.5.0-alpha.55",

Steps to reproduce the behavior

  1. npm i -D @storybook/addon-svelte-csf
  2. See error
Could not resolve dependency:
npm ERR! peer @storybook/svelte@"^6.2.9" from @storybook/[email protected]

Expected behavior

No error.

Additional context

I can force the install with npm i -f.
It works, but it is not doable in every environments (ie: CI).

What can I do to fix this?
Thank you

@francoisromain francoisromain added the bug Something isn't working label Apr 4, 2022
@j3rem1e
Copy link
Contributor

j3rem1e commented Apr 4, 2022

#42

@j3rem1e
Copy link
Contributor

j3rem1e commented Apr 8, 2022

Fixed in 2.0.1

@j3rem1e j3rem1e closed this as completed Apr 8, 2022
@francoisromain
Copy link
Contributor Author

francoisromain commented Apr 20, 2022

this issue is not fixed with the update.

now the error is :

Could not resolve dependency:
npm ERR! peer @storybook/svelte@"^6.4.20" from @storybook/[email protected]

@j3rem1e Could you re-open the issue please ?

@francoisromain
Copy link
Contributor Author

Sorry, my PR still didn't fix the issue.
I still have the same error:

❯ npm i -D @storybook/addon-svelte-csf
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! Found: @storybook/[email protected]
npm ERR! node_modules/@storybook/svelte
npm ERR!   dev @storybook/svelte@"^6.5.0-alpha.64" from the root project
npm ERR! Could not resolve dependency:
npm ERR! peer @storybook/svelte@">=6.4.20" from @storybook/[email protected]

@j3rem1e any idea on how to fix that please?

thank you

@j3rem1e
Copy link
Contributor

j3rem1e commented Apr 24, 2022

It's expected, the matcher ">=6.4.20" doesn't select prerelease version.

You can use --force to use a prerelease version.

@francoisromain
Copy link
Contributor Author

ok.
The problem is I can not use --force in the CI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants