daily-code
daily-code copied to clipboard
bug: Not able to run repo in dev mode.
Describe the bug While following all the instruction given on redme file to start this repo, when running yarn prisma db seed
getting an error :-
PrismaClientKnownRequestError:
Invalid db.track.create()
invocation in
A:\daily-code\packages\db\prisma\seed.ts:9:32
6 const promises: Promiseid
)
To Reproduce
Just clone the repo try running it locally. When you come to yarn prisma db seed, you might see error in console.
Screenshots or GIFs
I think your DB is already populated check by using yarn prisma studio
in db folder.
Error is there is already a track present with the same ID.
I can see the models, but inside categories there is 0 record.
while leads ui to this
as we can see empty div below Laerning paths. could you tell me what I'm missing.
just reset your db or delete all data and run seed
again. or
comment/delete seedsData.forEach
in seed.ts
try latest version @vr1Ravi use .sh file and try to use the docker container it works fine for me
for this you should reset the migrate.The command for that is "npm run prisma migrate reset" and it should work fine.
@vr1Ravi , I too faced this issue during seed process. I tried deleting the db and reseting it but, I didnt find the solution appropriate. That's why I changed the seed.ts file with using upsert for every db table edit, from then on I am not facing issue with this problem. I have raised a PR #424 for the same.