Open iarlen-reis opened 1 year ago
Hi, Did you ever solve this problem?
This isn't a complete solution by any means; I've only just started using both Nextron and Prisma so there are probably lots more bumps to come, but adding the following to my electron-builder.yml
as a top-level property (not nested within files
or anything) allows my app to boot successfully:
extraResources:
- node_modules/.prisma/**/*
- node_modules/@prisma/client/runtime/**/*
Pretty sure this is only the tip of the iceberg, and depending on how your app is structured the next problem you might hit is that Prisma can't find your sqlite database - but that's a userland/runtime issue you can solve in lots of different ways (as are things like migrations - I expect they'll be fun too).
I recently tried to implement prisma with sqlite in my project with nextron, but unfortunately I encountered some problems. in development, the prisma connection with sqlite works normally, but when generating an application build and trying to run it, this error occurred:
by the looks of it, nextron can't find @prisma/client when trying to run it, I tried some solutions I found on the internet, like copying the prisma folder into ./dist after the build, but that didn't work either.
would anyone have a solution for this problem? maybe an example explaining how to implement prism with nextron.
implementation attempt repository: github repository
other information: