Skip to content
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

vite preview cmd fails using build lib in config #9091

Closed
7 tasks done
dave52 opened this issue Jul 13, 2022 · 1 comment
Closed
7 tasks done

vite preview cmd fails using build lib in config #9091

dave52 opened this issue Jul 13, 2022 · 1 comment

Comments

@dave52
Copy link

dave52 commented Jul 13, 2022

Describe the bug

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.

Recreating

  1. Open https://stackblitz.com/edit/vitejs-vite-9hjpr5?file=package.json&terminal=dev
  2. npm run build
  3. npx vite preview
  4. Should produce Cannot GET / error

Reproduction

https://stackblitz.com/edit/vitejs-vite-9hjpr5?file=package.json&terminal=dev

System Info

Local:
Windows 10 64, Powershell, PNPM

Stackblitz:
Defaults, NPM

Used Package Manager

pnpm

Logs

No response

Validations

@bluwy
Copy link
Member

bluwy commented Jul 14, 2022

Duplicate of #7009

@bluwy bluwy marked this as a duplicate of #7009 Jul 14, 2022
@bluwy bluwy closed this as not planned Won't fix, can't repro, duplicate, stale Jul 14, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jul 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants