Udlei Nati
Explore posts from serversDTDrizzle Team
•Created by Udlei Nati on 1/6/2025 in #help
Could not find package 'postgres' from referrer 'file:///deno-dir/npm/registry.npmjs.org/drizzle-orm
I replied to this issue with the example that I'm posting here:
https://github.com/drizzle-team/drizzle-orm/issues/3748
I'm following the error:
You might not get the error if you have postgres package installed globally via npm. To easily reproduce it, try running it using Docker:
Create a file named main.ts with the following content:
Now let's run it using Docker:
Run this command:
You'll see the following error:
If we switch to using postgres from npm instead of deno, it works for connections without SSL, but with SSL enabled, it returns another error:
The way to go it to keep it as it was in drizzle 0.30, this issue started to happening after 0.31.
Does anyone have any suggestions on how to solve this issue?
Best
4 replies