Replies: 3 comments 3 replies
-
What Node.js' versions are we dealing with? Does your local Node.js version, match the deployment version? |
Beta Was this translation helpful? Give feedback.
-
Same issue here when using Bun. Next.js just fine on my host but fails when building my Docker image. Both my machine and the image use the same version of Bun (1.2.12) |
Beta Was this translation helpful? Give feedback.
-
I had the same issue and tried many solutions. The only solution that worked for me was to use a node image as base and install bun on it, instead of using the bun base image. Instead of using:
Using:
Hope it helps someone :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I have updated Recharts to a beta version because there are new features I need. Everything was working great in my development environment—until I tried to push my changes to GitHub (the project: https://github.com/nayzflux/avermate/).
I have a whole process to automatically build and deploy my app when updating the main branch. However, this time, the builds won’t pass. So I ran tests on my own machine by running
next build
, and it passed.I figured out that as soon as I imported something from this library, I would get an error on the corresponding page, like this:
I spent hours trying to find a solution to this (the error message is not very helpful because I can't access the built file). I really need this version of the library, and I could not reproduce the issue on my machine nor on the library developer's setup.
I hope that someone stumbling across this post will be able to help me. I don’t know if I have done something wrong in my Dockerfile, misconfigured something, a bug inside next or if it is something else.
Thanks for the attention you'll give to my issue.
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions