-
Notifications
You must be signed in to change notification settings - Fork 16
Description
Current Behavior
pnpm dev
@opendatacapture/[email protected] dev /home/ropdav/projects/OpenDataCapture/apps/api
NODE_ENV=development env-cmd -f ../../.env tsx scripts/dev.ts
Watching...
Done! Build completed with 0 errors
/home/ropdav/projects/OpenDataCapture/apps/api/dist/app.js:109963
module.exports = __toCommonJS2(default_index_exports);
^
ReferenceError: module is not defined in ES module scope
This file is being treated as an ES module because it has a '.js' file extension and '/home/ropdav/projects/OpenDataCapture/apps/api/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
at ../../node_modules/.pnpm/@prisma[email protected][email protected]/node_modules/.prisma/client/default.js (/home/ropdav/projects/OpenDataCapture/apps/api/dist/app.js:109963:5)
at __init (/home/ropdav/projects/OpenDataCapture/apps/api/dist/app.js:16:59)
at ../../node_modules/.pnpm/@prisma[email protected][email protected]/node_modules/@prisma/client/default.js (/home/ropdav/projects/OpenDataCapture/apps/api/dist/app.js:109994:11)
at __require2 (/home/ropdav/projects/OpenDataCapture/apps/api/dist/app.js:19:50)
at (/home/ropdav/projects/OpenDataCapture/apps/api/dist/app.js:147438:29)
Node.js v22.11.0
Expected Behavior
should properly run our prisma schema when pnpm dev is called
Browser
Firefox
Steps To Reproduce
Follow the current development documentation to replicate
Additional Details
No response
Priority
High