Next.js Discord

Discord Forum

Nextjs + Bun sqlite not working

Unanswered
Clumber Spaniel posted this in #help-forum
Open in Discord
Clumber SpanielOP
im getting ⨯ Error: Failed to load external module bun:sqlite: TypeError: Native module not found: bun:sqlite
even though im running with bun --bun run dev, any idea why?

6 Replies

Clumber SpanielOP
the function is being invoked from middleware
Clumber SpanielOP
Bump
@Clumber Spaniel maybe this helps? https://github.com/oven-sh/bun/issues/5382
@Diamond Master <@1001882673251356673> maybe this helps? https://github.com/oven-sh/bun/issues/5382
Clumber SpanielOP
this kinda solved it, the issue is that i was getting new error: unexpected token: ":"
idk about that srry
Clumber SpanielOP
no problem :D