Questions about Bun + Prisma
slikc
HOBBYOP

a year ago

Hey all, I was trying to set up an express server, running it with Bun.

The project uses Prisma, and I was wondering if using bun would be the reason it isn't working?

I keep getting this error, which I don't get locally on my Mac

Unable to require(`/app/node_modules/.prisma/client/libquery_engine-debian-openssl-3.0.x.so.node`).

Prisma cannot find the required `libssl` system library in your system. Please install openssl-3.0.x and try again.

plus a load more spam stuff that I don't think is important.

6 Replies

slikc
HOBBYOP

a year ago

7d898bee-79d5-4467-aa65-da6e635c72c5


slikc
HOBBYOP

a year ago

I do have bun prisma generate in my pre deploy too

1338139019778850800


a year ago

are you using nixpacks or your own dockerfile?


slikc
HOBBYOP

a year ago

nixpacks


a year ago

I would advise you to create a dockerfile instead of using nixpacks, for some reason it isn’t including libssl but you can add it by creating a nixpacks.toml file at the root of your project and pasting this inside:

[phases.setup]
    nixLibs = ['...', 'openssl']

a year ago

then deploy your project again


Loading...