Facing error when I use "wasp db migrate-dev"

Error msg:
5 Replies
okitsme_Parth
okitsme_ParthOP•14mo ago
Filip
Filip•14mo ago
Hey @okitsme_Parth can you send the full Wasp file? I'll try to reproduce it locally
okitsme_Parth
okitsme_ParthOP•14mo ago
shall i send whole code, wait let me send you the url https://usemage.ai/result/a15841c8-ec59-422b-9b91-ff8d26fbcc0a
MAGE - GPT Web App Generator ✨
Generate your full-stack React, Node.js and Prisma web app using the magic of GPT and the Wasp full-stack framework.
Filip
Filip•14mo ago
Nice thinking, I'll check it out! Hey, the error says:
Error parsing attribute "@relation": The relation field `settings` on Model `User` provides the `fields` argument in the @relation attribute. And the related field `user` on Model `UserSettings` provides the `references` argument. You must provide both arguments on the same side.
Error parsing attribute "@relation": The relation field `settings` on Model `User` provides the `fields` argument in the @relation attribute. And the related field `user` on Model `UserSettings` provides the `references` argument. You must provide both arguments on the same side.
You can take a look at what that means in Prisma's docs: https://www.prisma.io/docs/concepts/components/prisma-schema/relations
okitsme_Parth
okitsme_ParthOP•14mo ago
đź‘Ť
Want results from more Discord servers?
Add your server