R
Railway7mo ago
lasse

Supabase Nixpacks Error

When trying to deploy to prod using nixpacks with bun. It throws:
Error: Error reading src/types/database.types.ts

Caused by:

stream did not contain valid UTF-8
Error: Error reading src/types/database.types.ts

Caused by:

stream did not contain valid UTF-8
Wich is where my types from supabase is genarated by the supabase cli. is there away to ignore the file?
Solution:
make sure the file is utf-8
Jump to solution
10 Replies
Percy
Percy7mo ago
Project ID: N/A
lasse
lasseOP7mo ago
N/A
Brody
Brody7mo ago
kinda seems like youd need that file though?
lasse
lasseOP7mo ago
Yeah i do. But i don't know how to fix it
Solution
Brody
Brody7mo ago
make sure the file is utf-8
lasse
lasseOP7mo ago
mabye i need to rename it?
Brody
Brody7mo ago
I'm not sure what the file name has to do with it being utf-8
lasse
lasseOP7mo ago
idk too, but i never getten this error before. I can share the file?
Brody
Brody7mo ago
^ no need, just make sure it's utf-8
lasse
lasseOP7mo ago
It fixed the error. By renaming it. Thanks for the help :D
Want results from more Discord servers?
Add your server