Build Vite Frontend with Bun #13812
ninoslat1
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
|
I think this might help: https://www.reddit.com/r/reactjs/comments/161sj18/vite_build_not_working/?rdt=50079 Seems like it only works when you deploy it to a web server |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, i tried to build my Vite React apps and follow the documentation in here https://bun.sh/guides/ecosystem/vite. However i encountered an error, where I can't serve the static HTML after running
bunx --bun vite build. This is generated HTML from that command.After trying to serve it with Live Preview, I got an error
Failed to load resource: the server responded with a status of 404, this error happens because we need to add.before the/assets. So we need to configure the vite.config.ts with addingbase: './like thisAfter adding base path from the config and rebuilding the apps, we got this HTML, and when I used Live Preview again. The source was successfully loaded
Beta Was this translation helpful? Give feedback.
All reactions