Hi all I ran into an issue where generate no longe...
# orm-help
e
Hi all I ran into an issue where generate no longer works. When generate runs I get this error:
Copy code
Prisma schema loaded from prisma/schema.prisma
Error: binaryTargets.flatMap is not a function
How I got to this is i renamed a model that had two many to many relationships to a different name. Maybe there’s a better way if I need to rename an entire table besides just renaming it in the schema file and re-running migration/generate? πŸ˜…
πŸ‘€ 1
j
Uh, that looks pretty unrelated.
Did you by chance also reinstall dependencies or update something?
What does your
npx prisma -v
output look like?
e
maybe i just need to update it @janpio?
j
That certainly won't hurt, but probably also won't help
I was wondering if you have a mismatch of versions - but you do not.
e
let me try updating it who knows
okay thanks for the help @janpio it was because my node version was older updated to the latest node on LTS and its working fine πŸ˜„
j
Yay.
On which version were you?
(In theory incompatible ones should throw an error instead of fail like this with weird messages...)
e
i was on 10.something πŸ˜…
πŸ‘ 1
i found out it was super old when i tried to update and it threw a message of my npm version being old
πŸ‘ 1