Closed nadirabbas closed 3 years ago
Vue 2 is not yet supported. There's an open PR (https://github.com/eirslett/storybook-builder-vite/pull/66) to add support.
If you want to reuse your project's vite config, you should not just directly return it. Because it will override the configuration that builder-vite
uses, which contains plugin handling virtual module vite-app.js
. You can use mergeConfig
provided by vite
to merge configs, see https://github.com/eirslett/storybook-builder-vite/issues/85#issuecomment-900831050
[vite] Internal server error: No files matching '/virtual:/@storybook/builder-vite/vite-app.js' were found.
Vite throwing this error
@elzodxon please open a new issue with all of the details in the template.
guys check this discussion for a workaround, it might be useful for you https://github.com/storybookjs/builder-vite/issues/367#issuecomment-1116892668
Using Vue 2
Error in console:
My Vite config:
My Storybook
main.js
: