-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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]: pnpm + Vite + 8.0.0-beta.1 fails to build with "Rollup failed to resolve import "@storybook/theming"..." #25964
Comments
@JReinhold This is not only an issue for vite, it happens with nextjs also. |
@JReinhold any chance you can try this in a different package manager and/or an older version of pnpm to help debug the problem? There have been a bunch of recent pnpm-related issues all at once and I'm wondering whether it's due to a bug (or just a change?) in the latest release of pnpm? |
storybook/code/ui/blocks/package.json Line 57 in 3075818
|
I am seeing the same issue in a PR upgrading Storybook from My specific error is I agree #25925 is the likely cause, because I can force the same error to happen on So I think #25925 is having an unintended side effect. |
I have an initial fix for it at #26024. @aaronadamsCA if you could test out the canary with |
Confirmed @JReinhold, that works for me! Thank you. |
Describe the bug
A setup that's based on pnpm, Vite and Storybook version
8.0.0-beta.1
can't be built, because it fails with:To Reproduce
npx storybook@next sandbox svelte-vite/default-ts --output issue-25964
cd issue-25964
pnpm install
pnpm run build-storybook
System
Additional context
Everything works fine in
8.0.0-beta.0
, I assume I introduced this bug in https://github.com/storybookjs/storybook/pull/25925/files#diff-e3d50a086df937d7c8f41d5819f0e6d8368961c112866cc291cfe057a4fafe23R153 or maybe #25925 (but probably not).npm and Yarn v4 also works fine, even with
beta.1
.Workaround
Explicitly installing
@storybook/theming@next
will make the error complain about@storybook/components
instead. Installing that too, will make the error go away.The text was updated successfully, but these errors were encountered: