bun
bun copied to clipboard
Unable to use `bun --bun run build` for nextjs
What version of Bun is running?
1.0.25+a8ff7be64
What platform is your computer?
Darwin 23.2.0 arm64 arm
What steps can reproduce the bug?
Run the following command for nextjs project.
NODE_ENV=production bun --bun run build
What is the expected behavior?
The project is successfully built.
What do you see instead?
This takes forever:
$ next build
▲ Next.js 14.1.0
Creating an optimized production build ...
Additional information
No response
Next.js uses Webpack internally so builds still take a while even when using bun as the package manager. Is the build hanging indefinitely or is it just long?
ZachLegros Next.js uses Webpack internally so builds still take a while even when using bun as the package manager. Is the build hanging indefinitely or is it just long?
It hangs forever
In my project, it hangs in docker, but works well in host. I'm using macOS x86.
https://github.com/vercel/next.js/issues/61300
This issue appears to be fixed in 1.1.3.