-
Notifications
You must be signed in to change notification settings - Fork 3
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
Aliased imports mocks #3
Comments
I just took a look at why you can't import Here's the upstream issue: storybookjs/storybook#14952 |
@michaelwooley are you still having difficulty with stores? I wasn't able to reproduce what you mentioned in #7 (comment) I put the following in
It printed:
|
I am seeing the same message you reported in the terminal running storybook. All of the errors that I am seeing only show up in the browser once you navigate to the header story (i.e. Unfortunately, I'm still seeing the same errors that were popping up the other day (#7 (comment)). I'm pretty certain that we're trying the same cases but here is a branch of what I've just tried just in case: https://github.com/michaelwooley/storybook-experimental-vite/compare/michael/import-session-store-demo Poking around the code a bit, the failure appears to come up in const stores = getContext('__svelte__');
return {
page: {
subscribe: stores.page.subscribe We never set the |
Most aliases are now supported out-of-the-box with the latest Storybook 7. You can see a summary of what is supported and not supported here: https://github.com/storybookjs/storybook/tree/next/code/frameworks/sveltekit There are a few that are not yet supported and make more sense to support as mocks. I've created a new issue to track that: storybookjs/storybook#20999. PRs for it would be very welcome! |
No description provided.
The text was updated successfully, but these errors were encountered: