Skip to content

Cannot find module'@prisma/client' after electron builder build the app #10562

Answered by TasinIshmam
CalsRanna asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @CalsRanna,

I faced a similar issue when using electron-builder and I was able to solve it by keeping everything prisma client related in extraResources. I see that you tried this, I was wondering if you could share the configuration you used in your attempt?

In my case, what I did is shown in this repo, with the electron builder config located in package.json. Perhaps it might work for you.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@igolka97
Comment options

@Ipicon
Comment options

Answer selected by jharrell
Comment options

You must be logged in to vote
3 replies
@Evilu
Comment options

@Ipicon
Comment options

@Evilu
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants