Next.js Discord

Discord Forum

msql2 + drizzle + next.js

Unanswered
Liam posted this in #help-forum
Open in Discord
npm run build

next-auth@0.1.0 build
next build

â–² Next.js 14.1.4
- Environments: .env

Creating an optimized production build ...
Compiler server unexpectedly exited with code: 3221225725 and signal: null

Build error occurred
Error: Jest worker encountered 1 child process exceptions, exceeding retry limit
at ChildProcessWorker.initialize (F:\Personal\next-auth\node_modules\next\dist\compiled\jest-worker\index.js:1:11580)
at ChildProcessWorker._onExit (F:\Personal\next-auth\node_modules\next\dist\compiled\jest-worker\index.js:1:12545)
at ChildProcess.emit (node:events:526:35)
at ChildProcess._handle.onexit (node:internal/child_process:294:12) {
type: 'WorkerError'
}

i using mysql2 and drizzle to create some auth project. It work fine when i run dev, but i happen when i run build
and when i deploy to vercel it work but it crack because Edge Function

9 Replies

@Ray try installing `next@canary`
Arboreal ant
yh i know that fixes it, but doesnt make sense why is is broken in the stable release of next but works in canary
@Arboreal ant yh i know that fixes it, but doesnt make sense why is is broken in the stable release of next but works in canary
which mean there was some issue with mysql2 and the fix has not applied to stable release yet
@Ray which mean there was some issue with mysql2 and the fix has not applied to stable release yet
Arboreal ant
i guess il just switch to another package, any good alternatives to mysql2?
@Arboreal ant i guess il just switch to another package, any good alternatives to mysql2?
I don't know if there is another adapter for drizzle?
I would say use canary for now and wait for 14.2
Arboreal ant
okay