You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vite build's sucessfully but when trying to preview with vite preview demo page shows a Cannot GET /
Perhaps previewing isn't compatible with build.lib?, please let me know if this is the case. Also the vite build command isn't producing any errors.
Discovered this locally after setting up the Vite supplied lit-ts template, but also able to recreate on the Stackblitz demo. Seemed to have isolated it to when a vite.config.ts build.lib is setup.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
vite build
's sucessfully but when trying to preview withvite preview
demo page shows aCannot GET /
Perhaps previewing isn't compatible with
build.lib
?, please let me know if this is the case. Also thevite build
command isn't producing any errors.Discovered this locally after setting up the Vite supplied
lit-ts
template, but also able to recreate on the Stackblitz demo. Seemed to have isolated it to when a vite.config.tsbuild.lib
is setup.Recreating
npm run build
npx vite preview
Cannot GET /
errorReproduction
https://stackblitz.com/edit/vitejs-vite-9hjpr5?file=package.json&terminal=dev
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: