prismany icon indicating copy to clipboard operation
prismany copied to clipboard

Prisma might have renamed their query engines?

Open RoccoFarrell opened this issue 2 years ago • 2 comments

Line 52 of the generate.js script has

const engineFile = (0, fs_1.readdirSync)(clientPath).find((f) => f.startsWith('libquery_engine-'));

where clientPath is .\node_modules\@prismany\client\base_schema

However the copied engine is named query_engine-windows.dll.node

Changing line 52 to const engineFile = (0, fs_1.readdirSync)(clientPath).find((f) => f.startsWith('query_engine-')); allows the script to fi nish

screenshot

RoccoFarrell avatar Dec 05 '23 19:12 RoccoFarrell

hmmmm, thanks for opening this @RoccoFarrell

I'm guessing you're right about the reason, I would say for now, if you really need this library, you would need to downgrade your Prisma version, or fork it with the change you suggested. I know that's not a satisfying answer. Just don't have time to test your change on all Os's.

I'm wrapping up a big leg of a project right now, but once I'm done that I can look into this. Probably a few weeks.

JoeRoddy avatar Dec 16 '23 17:12 JoeRoddy

It's also possible it's a windows specific issue, I've never tested this library on Windows, so it's possible it was always broken there.

JoeRoddy avatar Dec 16 '23 17:12 JoeRoddy