-
-
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]: Vite Pre-transform error: Failed to load url /sb-preview/runtime.js
#25256
Comments
Pre-transform error: Failed to load url /sb-preview/runtime.js
I was facing this error on Storybook 7.6, after upgrading to Vite 5. |
Hi @ErickPetru Error Details [vite] Pre-transform error: Failed to load url /sb-preview/runtime.js (resolved id: /sb-preview/runtime.js). Does the file exist? |
@dev-madhurendra, I don't know if this can be the reason... |
Describe the bug
When running storybook via vuejs, currently the following shows up in the console
This is due to a new pre-transform feature of vite 5 I think
Currently storybook does already add the following in to the vite config as part of builder-vite
What I think is also needed is the following
Fix pulled from the following
To Reproduce
System
The text was updated successfully, but these errors were encountered: