-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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] error while transforming /app/client/vite.config.ts with esbuild in Docker image #876
Comments
Maybe you can try this...
|
You should add |
@underfin its there, I copy all of it to the container, hence This is my project structure: |
Thanks for the suggestions.
|
@underfin Also: running the same on my develop pc does work. Why close this issue? |
Seems related to: shortpoet/vite-ts-docker#1 but propose solution doesn't work. @gioxoay @shortpoet |
Changed the location of the index.html. `vite v1.0.0-rc.4
[vite] error while transforming /app/client/src/main.ts with esbuild:
[vite] error while transforming index.553e494c.js with esbuild: |
Using the |
I managed to get this work by running
before the |
Thank you very much. It works for me too. |
Describe the bug
Following error when trying to run
vite build
in a docker container. I tried to convert the config file to a JS file but then it throws an error on my main.ts. On my (windows) development pc the build command works perfectly.Vite: 1.0.0-rc.4
Docker image: https://hub.docker.com/_/node (tried multiple)
Dockerfile:
Reproduction/System Info
I have tried tens of different docker containers with node installed, they all give me this error.
Logs (Optional if provided reproduction)
I ran with the --debug flag.
The text was updated successfully, but these errors were encountered: