Prisma Nickpacks with Bun error
When trying to build nixpacks with bun and prisma using this config:
I get the following error:
51 Replies
Project ID:
N/A
try this -
Returns this with, and says schema error but there is no error
no more openssl issue though?
No
Running from the docker desktop and this is what i get
okay try adding this to your schema file -
Alr
Same thing
Error: Schema engine error:
no error is returned...i assume this works locally without docker?
Yes, when i just run
bun dev
it works without any issuesbut bun dev is not what is being ran with the image
nope, the start command wich is runned at the end is
bun start
wich is just the dev cmd without --watchrun the entire start command locally outside of docker
alr 2 sec
That worked
what command did you run
the start command from the nixspacks.toml file
including the deploy and generate part?
Yes
should deploy be ran before generate?
We can try that
its first time i use prisma with migrate
that was just a y/n question haha
yes
Now there is something. It seems the migrate cmd fails
lets try without it
what version of prisma are you using
v5.13.0
but it works
removed the migrate cmd, then there is no issues
send me your nixpacks build table please
thats your nixpacks.toml file
whats the table ?
in the build logs
oh yeah sure 2 sec
we are the only two people here, theres no need for the ping replies
its beacuse i forgot to turn it off when i reply
theres no need to reply to a specific message, we are the only people here
You right
what node version do you have installed locally?
anyways i can confirm it also works on railway
the latest version
thats not really an answer haha
you mean bun?
i mean node
I'm using version 22
and what bun version
1.1.6
can you try downgrading to node 18 and bun 1.1.4, deleteing the node_modules folder and running the same install and start commands as nixpacks does (locally outside of docker)
With the migrate cmd also? Beacuse it works all now?
Beacuse i removed the migrate cmd
well you would want the migrate command
Yeah true
how to downgrade to bun v1.1.4?
remove your current version of bun and install 1.1.4
😎
i run this command but bun is still there somehow