-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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] Pre-transform error: Failed to convert napi value into rust type bool
#18272
Comments
Start to happen here too after updating the libs (Vite 5.3.5 to 5.4.8). I didn't indentify yet, then follow the stack trace that should help others. [plugin:vite:import-analysis] Failed to convert napi value into rust type
|
Hello @AbderrahmenISSA. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
@AbderrahmenISSA I had the same problem. I added |
|
Not working any solution in my case Dockerfile:
Compose:
|
Okay, I solved it. I made 3 changes:
|
This is definitely some new issue, using Vite 5.3.5 works totally fine but using latest version |
Try to update vitejs/plugin-react-swc to at least 3.7.1 |
I had same issue, FROM node:18-alpine3.19 AS build
WORKDIR /app
COPY package.json .
RUN npm i
COPY . .
RUN npm run build Vite version Fix |
I'm not sure why adding node_modules to |
having the same error but not with Docker. Just trying to deploy to Render.com. Fails with this same error. |
try with: Vite 5.3.5 |
I kept running into this in various ways (continually deleting my node_modules folder, giving up docker mounts, and downgrading all aren't great options), but upgrading to 5.4.10 seemed to resolve it for me. |
Describe the bug
I can't build a docker image from my simple VITE project
Reproduction
Localhost
Steps to reproduce
docker build image
docker run image_id
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: