[vite] Pre-transform error: Failed to convert napi value into rust type bool
#18271
Unanswered
AbderrahmenISSA
asked this question in
Q&A
Replies: 3 comments 3 replies
-
Same error here Dockerfile:
Compose:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Okay, I solved it. I made 3 changes:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am trying to build a docker image for my VITE projetc :
Here the Dockerfile :
The vite.config.ts
In my package.json I have :
So when I build the docker image for example with local config :
The docher image is correctly built.
The running seems to be good also :
But I have this error when I navigate to the home page : http://localhost:3000/
[vite] Internal server error: Failed to convert napi value into rust type
bool
Plugin: vite:import-analysis
File: /usr/src/app/src/main.tsx
at parseAst (file:///usr/src/app/node_modules/rollup/dist/es/shared/parseAst.js:2203:23)
at transformCjsImport (file:///usr/src/app/node_modules/vite/dist/node/chunks/dep-C1-ZB6nQ.js:64721:16)
at interopNamedImports (file:///usr/src/app/node_modules/vite/dist/node/chunks/dep-C1-ZB6nQ.js:64693:23)
at file:///usr/src/app/node_modules/vite/dist/node/chunks/dep-C1-ZB6nQ.js:64482:19
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Promise.all (index 0)
at async TransformPluginContext.transform (file:///usr/src/app/node_modules/vite/dist/node/chunks/dep-C1-ZB6nQ.js:64385:7)
at async PluginContainer.transform (file:///usr/src/app/node_modules/vite/dist/node/chunks/dep-C1-ZB6nQ.js:49587:18)
at async loadAndTransform (file:///usr/src/app/node_modules/vite/dist/node/chunks/dep-C1-ZB6nQ.js:52409:27)
Can you please help me ?
Beta Was this translation helpful? Give feedback.
All reactions