Closed
Description
Describe the bug
- In a Vite (using Vue 2.7) project I setup Storybook using
npx sb@next init
- Ran yarn build-storybook
- Copied the storybook-static to an empty GitHub repository and renamed folder docs
- Setup github pages to point to that branch and docs folder
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
- Run reproducer command and select Vue 2.7
- Run yarn in repo
- Run yarn build-storybook
- Copy contents of static-storybook to new branch gp-pages with no other contents in
- Go to Gihtub repo settings, pages
- Select deploy from branch, gp-pages and /root and save
- Open deploy and see dynamic import error
System
No response
Additional context
No response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Type
Projects
Status
Done