-
-
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]: @storybook/theming/create
export no longer exists with 8.2.2
#28566
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
If the comment above is correct, please update |
The bot's statement is false. I'll investigate. |
For me the error happens only when using |
Yeah, I think it's because the The only idea I have to resolve this by adding |
Does anyone have a repro for me to experiment/try my theory on? |
https://github.com/sl-design-system/components/tree/maintenance/upgrade-deps should be ready to go. Run |
FYI, we are looking into writing an automigration to look for these packages that are referenced in code but not available in |
I think there's something slightly different going on with PNPM workspaces as well. Getting the same |
@MWhite-22 could you share a repro of this? |
I'm also getting a similar error when updating the storybook packages in orbitkit. Commit that introduced the error: ixahmedxi/orbitkit@c5bf39e#diff-22c2ff92a920c01d84e66e1a39f97a1b913c391396737e2c81b2eca568e8ee68 The error being outputted from tsc: |
I see.. the issue you seem to get is this:
Is this a problem with our types? I've seen the "but cannot be named" problem often too, and always end up here: We do export the
re-exported here: storybook/code/core/src/theming/index.ts Line 32 in c647260
So I'm not sure there's anything on the storybook side we could do, but I'm very open to suggests and would love to fix this so no changes are required on your part. |
We also have an issue in a pnpm workspace when upgrading to 8.2: |
I can't seem to be able to import The error actually goes away when I import the |
@ixahmedxi Ah, that has given me a bit of a new insight. I could export those types from the |
Also seeing this issue, even with |
This should be fixed in |
@ixahmedxi I can not reproduce that we exported ThemeVars in |
Same for me. Using version |
@dklemmt Are you able to provide a reproduction? |
Everyone who hits this issue, could you please run |
@ndelangen Seems to be fixed by this one: Could you review @ndelangen ? |
Hi @valentinpalkovic, please take a look here: https://github.com/dklemmt/fluidus-ui You can run Storybook from root using Thank you very much for looking into. |
Hey all, a fix has been released in 8.3.0-alpha.2. Can you see if your issues are resolved? We will also patch this back to 8.2.5 shortly. |
Hi @vanessayuenn, I checked and the issue has been fixed (at least for me). Thank you very much. |
Describe the bug
I'm upgrading our Storybook from 8.1 to 8.2.2 and ran into the error below:
Code in question:
import { create } from '@storybook/theming/create';
Afaict this code should still be valid (https://storybook.js.org/docs/configure/user-interface/theming#create-a-theme-quickstart)
If i inspect the theming package in my node_modules folder, i don't see anything anymore that relates to
create
.Reproduction link
Reproduction steps
No response
System
Additional context
No response
The text was updated successfully, but these errors were encountered: