bun icon indicating copy to clipboard operation
bun copied to clipboard

Unable to use `bun --bun run build` for nextjs

Open madebyais opened this issue 1 year ago • 5 comments

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

madebyais avatar Jan 30 '24 00:01 madebyais

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 avatar Jan 30 '24 14:01 ZachLegros

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

madebyais avatar Feb 01 '24 06:02 madebyais

In my project, it hangs in docker, but works well in host. I'm using macOS x86.

zhengcan avatar Feb 05 '24 05:02 zhengcan

https://github.com/vercel/next.js/issues/61300

zhengcan avatar Feb 05 '24 05:02 zhengcan

This issue appears to be fixed in 1.1.3.

zhengcan avatar Apr 08 '24 16:04 zhengcan