Is there a guide on how to host vite+react after done coding?

i followed one tutorial to upload via github pages by installing gh pages etc and it ended up having issues. the host websites only has root div and no content inside.
3 Replies
Avinash
AvinashOP•2y ago
RollupError: Could not resolve "./components/footer/footer" from "src/App.jsx"
at error (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:2125:30)
at ModuleLoader.handleInvalidResolvedId (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:23979:24)
at file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:23941:26
Error: Command "npm run build" exited with 1
Deployment completed
BUILD_UTILS_SPAWN_1: Command "npm run build" exited with 1
RollupError: Could not resolve "./components/footer/footer" from "src/App.jsx"
at error (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:2125:30)
at ModuleLoader.handleInvalidResolvedId (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:23979:24)
at file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:23941:26
Error: Command "npm run build" exited with 1
Deployment completed
BUILD_UTILS_SPAWN_1: Command "npm run build" exited with 1
Got this error
Avinash
AvinashOP•2y ago
GitHub
GitHub - Avinash-Tallapaneni/basicEcommerce
Contribute to Avinash-Tallapaneni/basicEcommerce development by creating an account on GitHub.
WebMechanic
WebMechanic•2y ago
that link results in a 404. please remove it. Vite isn't "hosted" (unless you're Stackblitz) It's a local dev tool around Rollup and esbuild, so have it bundle and build your app code when done coding, then deploy the generated static html, js and css assets.
Want results from more Discord servers?
Add your server