You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We tried upgrading and had some minor hurdles: we are used to running zenstack generate from within our ./libs/prisma folder of our nx monorepo, which also holds the schema.zmodel. When I try to generate from this directory it now throws an error:
⌛ ZenStack CLI v1.7.0, running plugins
An unexpected error occurred:
TypeError: Cannot read properties of undefined (reading 'zenstack')
at getDefaultPrismaOutputFile (/home/max/code/sin/nx-sin/node_modules/zenstack/plugins/prisma/schema-generator.js:346:31)
at PluginRunner.<anonymous> (/home/max/code/sin/nx-sin/node_modules/zenstack/cli/plugin-runner.js:40:82)
at Generator.next (<anonymous>)
at /home/max/code/sin/nx-sin/node_modules/zenstack/cli/plugin-runner.js:8:71
at new Promise (<anonymous>)
at __awaiter (/home/max/code/sin/nx-sin/node_modules/zenstack/cli/plugin-runner.js:4:12)
at PluginRunner.run (/home/max/code/sin/nx-sin/node_modules/zenstack/cli/plugin-runner.js:34:16)
at /home/max/code/sin/nx-sin/node_modules/zenstack/cli/actions/generate.js:60:54
at Generator.next (<anonymous>)
at fulfilled (/home/max/code/sin/nx-sin/node_modules/zenstack/cli/actions/generate.js:5:58)
Moving to the root directory and running the command works correctly: yarn zenstack generate --schema libs/prisma/schema.zmodel
The text was updated successfully, but these errors were encountered:
Reportd by maxd on discord:
We tried upgrading and had some minor hurdles: we are used to running zenstack generate from within our ./libs/prisma folder of our nx monorepo, which also holds the schema.zmodel. When I try to generate from this directory it now throws an error:
Moving to the root directory and running the command works correctly: yarn zenstack generate --schema libs/prisma/schema.zmodel
The text was updated successfully, but these errors were encountered: