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
{{ message }}
This repository has been archived by the owner on Oct 9, 2022. It is now read-only.
I get the following error when running the script against my schema:
UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'length' of undefined
at /home/kpusmo/WebstormProjects/foo/node_modules/prisma-schema-transformer/dist/transformer.js:55:22
at Object.Immer.produce (/home/kpusmo/WebstormProjects/foo/node_modules/immer/dist/immer.cjs.development.js:791:20)
at transformModel (/home/kpusmo/WebstormProjects/foo/node_modules/prisma-schema-transformer/dist/transformer.js:53:37)
at /home/kpusmo/WebstormProjects/foo/node_modules/prisma-schema-transformer/dist/transformer.js:83:32
at Array.map (<anonymous>)
at Object.dmmfModelTransformer (/home/kpusmo/WebstormProjects/foo/node_modules/prisma-schema-transformer/dist/transformer.js:83:19)
at fixPrismaFile (/home/kpusmo/WebstormProjects/foo/node_modules/prisma-schema-transformer/dist/index.js:43:34)
at async /home/kpusmo/WebstormProjects/foo/node_modules/prisma-schema-transformer/bin.js:56:17
My schema is:
model foo_bar {
id String @id @default(uuid())
bar_foo String
baz String?
}
I've added console.log(model) to transformer.js:54, and the field is actually missing from the model:
I get the following error when running the script against my schema:
My schema is:
I've added
console.log(model)
to transformer.js:54, and the field is actually missing from the model:Am I missing something?
The text was updated successfully, but these errors were encountered: