Open SpectralAngel opened 1 week ago
This next-auth keeps on not working when I try to set it up, do you have a basic git repo that I can download and try to run instead (inc dockerfile)?
Also just to check, this works correctly with node right?
Hello @SpectralAngel. Please provide a minimal reproduction using a GitHub repository, Replit, CodeSandbox, or provide a bulleted list of commands to run that reproduce this issue. Issues marked with needs repro
will be closed if they have no activity within 3 days.
@RiskyMH yes this runs with node and with bun 1.1.29, I will upload a basic repo with the minimun required to make it crash
Here is the link to the repository, all you need to recreate the behavior is to run the docker-compose and point your browser to localhost:3000, you will be presented with a grey page and with the stack trace in the docker container https://github.com/SpectralAngel/bun-middleware-crash
Thanks for confirming! I can now reproduce this crash too. The next step is to figure out the root cause, but thank you for reporting it and letting us know. It definitely helps to have this reproducible case to work with.
Also ran into this today. Same on oven/bun:canary-alpine
Because of this issue i need to move back to npm for deployment through docker.
@thakuad Sorry to hear that, however I don't see any reason why Bun can't be used to install dependencies, even if it's not the builder or runtime.
Was the problem because Bun was being used as the package manager, or was it possibly due to Node.js not being installed, causing Bun to be used for runtime instead?
What version of Bun is running?
1.1.30
What platform is your computer?
Docker image oven/bun:alpine
What steps can reproduce the bug?
Using Next.js 14.2.15 and
next-auth@5.0.0-beta.22
bun crashes when the middleware is touched.This was working with bun version 1.1.29
What is the expected behavior?
Serving pages normally
What do you see instead?
Additional information
No response