Snaplet Seed issue during build
Unanswered
Atlantic mackerel posted this in #help-forum
Atlantic mackerelOP
I have been using Snaplet Seed to seed my database. The
meaning that it does take an argument and when I build it locally, the build succeeds.
Has anyone had this issue before or does anyone have any idea on how to start debugging this issue? I can't recreate it locally and I have no clue what to do next.
createSeedClient method has this signature:createSeedClient(options?: SeedClientOptions): Promise<SeedClient>meaning that it does take an argument and when I build it locally, the build succeeds.
Has anyone had this issue before or does anyone have any idea on how to start debugging this issue? I can't recreate it locally and I have no clue what to do next.
2 Replies
Field Spaniel
Maybe your running different versions? Every time you build your project it installs the dependencies and if non-deterministic versions are being used, the versions will not be consistent.
Also, did you follow the guide to integrate snaplet seed with prisma?
https://snaplet-seed.netlify.app/seed/integrations/prisma
Also, did you follow the guide to integrate snaplet seed with prisma?
https://snaplet-seed.netlify.app/seed/integrations/prisma
Atlantic mackerelOP
Ah I figured it out - I needed to add the
npx @snaplet/seed sync line to the build command 🤦♀️