-
-
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]: Failed to resolve module in static storybook build #21771
Comments
Do you a have a reproduction repo you can share? If not, can you create one? See how to create a repro. Thank you! 🙏 |
Updated to include reproducer |
I would like to add to this issue. I am using storybook v7 and when I try to load a static version of my storybook I get the same error mentioned above |
@shilman Any update on this? It seems like there is no way to host a site when using Vue2.7 and Vite? Dev mode is the only way to get storybook running but can't really use that to host it. |
I'm investigating this, and I'm noticing that the the preview's code files seems to be all inside a I've traced the problem to here: Here's the code referencing those files:
All these files seem to work fine, except for the files starting with a I don't think it's really a pathing issue. I wonder if GitHub is just refusing to deploy those files for some reason. @shilman I suspect this isn't a storybook issue, but rather a GitHub pages deployment issue. |
For reference: This seems to be a solution: |
Describe the bug
npx sb@next init
When I visit the github pages link storybooks loads but I see the following error
Failed to resolve module specifier "vue/dist/vue.esm.js". Relative references must start with either "/", "./", or "../".
To Reproduce
Repo: https://github.com/brettsaunders21/storybook-issue-21771
https://brettsaunders21.github.io/storybook-issue-21771/
Steps
System
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: