zenstack icon indicating copy to clipboard operation
zenstack copied to clipboard

[Bug] Typed JSON arrays do not work with trpc plugin enabled

Open hongkongkiwi opened this issue 11 months ago • 0 comments

Description and expected behavior See discord thread here: https://discord.com/channels/1035538056146595961/1315031502593196162

When using typed JSON arrays and running zenstack generate errors are produced with the trpc plugin enabled. Disabling the plugin generates just fine.

The solution to this is either disable the trpc plugin OR use the typed json type as a single item instead of an array. In either case it resolves the problem, however I expect these to work together.

Environment (please complete the following information):

  • ZenStack version: 2.11.0
  • Prisma version: 6.1.0
  • Database type: Postgresql

hongkongkiwi avatar Jan 07 '25 23:01 hongkongkiwi