I then run npm run storybook I get the following error:
Error: Failed to scan for dependencies from entries:
/workspaces/dev/tests/storybook-vue/src/stories/Button.stories.js
/workspaces/dev/tests/storybook-vue/src/stories/Button.stories.vue
/workspaces/dev/tests/storybook-vue/src/stories/Header.stories.js
/workspaces/dev/tests/storybook-vue/src/stories/Page.stories.js
β [ERROR] Do not know how to load path: html:/workspaces/dev/tests/storybook-vue/src/stories/Button.stories.vue?vue&type=stories
<stdin>:2:7:
2 β import "/workspaces/dev/tests/storybook-vue/src/stories/Button.stor...
β΅ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Here are the steps to create a test projects:
Then, following the instructions, I replace
main.js
withI then create
Button.stories.vue
insrc/stories
with the following:vite.config.js
looks like this:I then run
npm run storybook
I get the following error:Any ideas?