-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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 binary crashes during hosting a static build #17713
Comments
Hello @laciferin2024. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
We need the source code that generates the invalid output to investigate. |
@sapphi-red the framework that source code is written is sveltekit. I have attached the static code failing for vite [exclusively]. Its not the source code nor the static build the issue. Cuz the generated build is working just fine in chrome and gulp. I have definitely provided the minimum reproduction that was asked for. |
So you're trying to build the file output by sveltekit by vite (otherwise there's no reason to run |
Thanks @sapphi-red ,
is working. But when I tried |
|
Its working Although I get the error: (!) build.outDir must not be the same directory of root or a parent directory of root as this could cause Vite to overwriting source files with build outputs. when i set |
That is expected as the message says. |
Yeah, but why is the |
There is a edge case bug causing that, but Vite doesn't support building the output and I don't think it's worth fixing at this point. (since it's not what you are trying to achieve) |
Thanks, I really appreciate all the support. |
Describe the bug
Static Build:
build.zip
Reproduction [minimal]
docker run -p 8080:8080 ghcr.io/z-auth/zauth:feat-transactions
On Other file hosting binaries...
python3 -m http.server -d build/ 8080
Chrome extensions
Turn on developer mode in extensions
Load unpacked : and add the extracted build folder.
Reproduction
https://bit.ly/install-zauth
Steps to reproduce
Reproduction:
bun install [email protected]
#Reproducing innpm, yarn
as wellbunx vite build/ --port 8080
localhost:8080
in ur browser: preferably chrome.Error:
System Info
System: OS: macOS 14.5 CPU: (8) arm64 Apple M1 Memory: 62.28 MB / 8.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 20.11.0 - /usr/local/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 9.8.1 - /opt/homebrew/bin/npm pnpm: 9.1.0 - /opt/homebrew/bin/pnpm bun: 1.1.13 - /opt/homebrew/bin/bun Browsers: Chrome: 126.0.6478.182 Safari: 17.5 npmPackages: vite: ^4.5.3 => 4.5.3
Used Package Manager
bun
Logs
No critical Logs found in `bun
Validations
The text was updated successfully, but these errors were encountered: