You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I generated the boilerplate with remix blues stack.
If I add certain modules and import them, I get this error when building but ONLY inside Docker. ERROR: No matching export in "zod/index.ts" for import "z". Zod is an easy example I've shown in the above repo.
Of course, zod does exist in node_modules within the docker image.
I can run npm run build locally and it will work just fine, but inside Docker it fails.
The text was updated successfully, but these errors were encountered:
I am using zod inside a docker image (for fly.io) and don't have any issues. I have zod in my vite.config.ts optimizeDeps -> include array, along with other libraries. I am using node 20 as well.
Reproduction
https://github.com/mildrenben/zod-remix-issue
System Info
Used Package Manager
npm
Expected Behavior
Running the build from within Docker works.
Actual Behavior
Running the build from withing Docker fails.
I generated the boilerplate with remix blues stack.
If I add certain modules and import them, I get this error when building but ONLY inside Docker.
ERROR: No matching export in "zod/index.ts" for import "z"
. Zod is an easy example I've shown in the above repo.Of course, zod does exist in node_modules within the docker image.
I can run
npm run build
locally and it will work just fine, but inside Docker it fails.The text was updated successfully, but these errors were encountered: