-
-
Notifications
You must be signed in to change notification settings - Fork 126
Closed
Labels
Description
Description and expected behavior
After upgrading ZenStack from version 2.11.1 to 2.12.2, I encountered an error when running npx zenstack generate.
Error
An unexpected error occurred:
Error: Value must be boolean
at new AttributeArgValue (<project_path>/node_modules/zenstack/plugins/prisma/prisma-builder.js:224:27)
at <project_path>/node_modules/zenstack/plugins/prisma/schema-generator.js:622:36
at e.run (<project_path>/node_modules/ts-pattern/dist/index.cjs:1:4927)
at e.otherwise (<project_path>/node_modules/ts-pattern/dist/index.cjs:1:4570)
at PrismaSchemaGenerator.setDummyDefault (<project_path>/node_modules/zenstack/plugins/prisma/schema-generator.js:626:14)
at PrismaSchemaGenerator.generateModelField (<project_path>/node_modules/zenstack/plugins/prisma/schema-generator.js:613:22)
at PrismaSchemaGenerator.generateModel (<project_path>/node_modules/zenstack/plugins/prisma/schema-generator.js:207:22)
at PrismaSchemaGenerator.<anonymous> (<project_path>/node_modules/zenstack/plugins/prisma/schema-generator.js:87:30)
at Generator.next (<anonymous>)
at <project_path>/node_modules/zenstack/plugins/prisma/schema-generator.js:8:71
Environment
- ZenStack version: 2.12.2
- Prisma version: 5.22.0
- Database type: PostgreSQL