NestJS app hangs on startup after upgrading Better Auth from 1.3.9+
I’m running into an issue when upgrading Better Auth in a NestJS API.
Current working version: 1.3.8
Issue starts happening from: 1.3.9 (including 1.3.10-beta.1)
When I try to start the API, it just hangs and the terminal stays stuck on this:
The app never actually boots up.
I already tried deleting node_modules, dist, pnpm-lock.yaml, etc., but nothing fixes it.
It seems like something introduced in 1.3.9 might have broken compatibility with NestJS.
Is anyone else experiencing this? Or is there something I might be missing in the migration?
5 Replies
does the previous version works?
yes on 1.3.8 version work well
After multiple attempts, including deleting node_modules and pnpm-lock.yaml and forcing a reinstall, I’m now encountering the following error on versions 1.3.9 and above.
Even when I clone my project from scratch and try to start my API, I get the error mentioned above.
noble is now esm only
and we updated to latest version
I think that's what broke it
can you udpate your node version to v20.19+
This solved my problem, thank you very much, and sorry for bothering you with something so silly.
Found your question online and asked 22h ago, thank you very much!
I was able to resolve mine too by switch node version.