workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

🐛 BUG: I am getting the __dirname uncaught refrence error ?

Open Unknownmaster0 opened this issue 4 months ago • 0 comments

Which Cloudflare product(s) does this pertain to?

Workers Runtime

What version(s) of the tool(s) are you using?

3.81.0

What version of Node are you using?

21.7.1

What operating system and version are you using?

windows 11

Describe the Bug

Observed behavior

Please describe. Uncaught ReferenceError: __dirname is not defined at null. [code: 10021]

Expected behavior

Please describe. backend/node_modules/@prisma/client/runtime/library.js:6:1410) at null. (index.js:13:638) at null.

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

A request to the Cloudflare API (/accounts/6b04d8f8defb2010a12af27200ad7fe1/workers/scripts/medium-like-blog-backend/versions) failed.

Uncaught ReferenceError: __dirname is not defined at null. (backend/node_modules/@prisma/client/runtime/library.js:6:1410) at null. (index.js:13:638) at null. (backend/src/controllers/blog.controller.ts:2:45) [code: 10021]

Unknownmaster0 avatar Oct 19 '24 14:10 Unknownmaster0