ReferenceError: __dirname is not defined

Okay this is a general code question I just wanna ask since I cannot get answers elsewhere. So I'm using Prisma V4.15.0 and Bun, but for some reason I'm getting a ReferenceError: __dirname is not defined when dealing with checkpoint-client package (specifically at eval("__dirname") which was probably installed alongside Prisma. I've thought of that module probably being imported as ESM instead of CJS. Is there any way to force it to import as CJS or is this a dependency issue?
4 Replies
Percy
Percy2y ago
Project ID: N/A
RyanKnack
RyanKnack2y ago
N/A
Brody
Brody2y ago
unfortunately these threads are intended for help with the railway platform, I'm sure you will be able to find your answer on maybe a different general purpose programming discord server or maybe a bun server!
RyanKnack
RyanKnack2y ago
yeah i figured thanks Brody
Want results from more Discord servers?
Add your server