chris-is-agile
chris-is-agile
PPrisma
Created by chris-is-agile on 1/26/2025 in #help-and-questions
Build nightmare BigInts and external prisma/zenclient project not building with TurboRepo and nuxt
unfortunately when I did that it caused another issue with bnigints 🙂 thankfully, I moved away from creating a custom package for it and when I used the default package name it worked (unlike what the prisma documentation said to do :))
8 replies
PPrisma
Created by chris-is-agile on 1/26/2025 in #help-and-questions
Build nightmare BigInts and external prisma/zenclient project not building with TurboRepo and nuxt
--bump--
8 replies
PPrisma
Created by chris-is-agile on 1/26/2025 in #help-and-questions
Build nightmare BigInts and external prisma/zenclient project not building with TurboRepo and nuxt
package.json { "name": "@rhythmic/db", "version": "1.0.0", "description": "Rhythmic DB. Build to the Beat.", "author": "Chris Sims", "main": "src/index.ts", "scripts": { "db:generate": "zenstack generate --output=./generated/zenstackhq", "db:push": "prisma db push" }, "zenstack": { "schema": "./src/schema.zmodel", "output": "generated/zenstackhq" }, "prisma": { "seed": "npx tsx src/prisma/seed.ts", "schema": "./src/prisma/schema.prisma" }, "devDependencies": { "prisma": "^6.2.1", "ts-node": "^10.9.2", "tsx": "^4.19.2", "zenstack": "2.11.4" }, "dependencies": { "@prisma/client": "^6.2.1", "@zenstackhq/runtime": "2.11.4", "zod": "^3.24.1" }, "imports": { "#prisma": "./generated/prisma/index.js" }, "exports": { ".": "./src/index.mts", "./prisma": { "types": "./generated/prisma/index.d.ts", "default": "./generated/prisma/index.js" }, "./enhance": { "types": "./generated/zenstackhq/enhance.d.ts", "default": "./generated/zenstackhq/enhance.js" }, "./zenstackhq": { "types": "./generated/zenstackhq/.logical-prisma-client/index.d.ts", "default": "./generated/zenstackhq/.logical-prisma-client/index.js" }, "./zenstack/": { "types": "./generated/zenstackhq/.d.ts", "default": "./generated/zenstackhq/.js" }, "./generated/zenstackhq/": { "types": "./generated/zenstackhq/.d.ts", "default": "./generated/zenstackhq/.js" }, "./generated/prisma/": { "types": "./generated/prisma/.d.ts", "default": "./generated/prisma/*.js" } } }
8 replies
PPrisma
Created by chris-is-agile on 1/26/2025 in #help-and-questions
Build nightmare BigInts and external prisma/zenclient project not building with TurboRepo and nuxt
Some additoinal info: tsconfig from my /db project: { "compilerOptions": { "skipLibCheck": true, "strict": true, "declaration": true, "esModuleInterop": true, "target": "ESNext", "module": "ESNext", "lib": ["ESNext", "DOM"], "moduleResolution": "Node", "baseUrl": ".", "rootDir": "./src", "outDir": "./dist" }, "exclude": [ "node_modules" // Exclude node_modules ], "include": ["src/*/"] } Nuxt 3.15 with no changes to tsconfig. I'm using zenstack to generate. It runs when i use pnpm run dev but when i use turbo build it errors out when its building witht he error I shared.
8 replies