Replies: 1 comment 2 replies
-
This isn't enough to reproduce your issue. The project works correctly as you said. Maybe you are uploading it to a server that has a base as in |
Beta Was this translation helpful? Give feedback.
2 replies
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.
-
Describe the bug
I did a small project using vite using vanilla js and json file, I did a build that work well when using
run preview,
but it doesn't work with live server nor when I deploy it on server. I found this post #9088 but it doesn't really answer the issue.Reproduction
https://github.com/Fqlox/vite_minimal/tree/main
Steps to reproduce
I did a
npm run build
Then upload the dist dir in my server via ftp.
System Info
System: OS: macOS 12.3 CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz Memory: 227.86 MB / 16.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 20.0.0 - /usr/local/bin/node npm: 9.6.4 - /usr/local/bin/npm Browsers: Brave Browser: 100.1.37.111 Chrome: 113.0.5672.92 Firefox: 112.0.1 Safari: 15.4 npmPackages: vite: ^4.3.2 => 4.3.6
Used Package Manager
npm
Logs
No response
Validations
Beta Was this translation helpful? Give feedback.
All reactions