-
-
Notifications
You must be signed in to change notification settings - Fork 688
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: TypeScript error Please install '@neondatabase/serverless' to allow Drizzle ORM to connect to the database
#3521
Comments
the proper syntax would be const db = drizzle(sql); |
it also doesn't work properly import { neon } from '@neondatabase/serverless';
import { drizzle } from 'drizzle-orm/neon-http';
const sql = neon(process.env.POSTGRES_URL!);
export const db = drizzle(sql); same error
|
did you also install the package? |
The issue with |
I'm having this issue too |
can you please prepare a minimal reproducible example? |
I got this as well
And I did install Postgres. Setting strict to true, cleared it up. Here is a reprod: tobychidi/drizzle-lab-reprod Check the tsconfig in the file root. You can set Additional detailsMicrosoft Windows 11 Pro |
we'll switch it off, that's a nice little check, but unfortunately it for some reason doesn't work with PR is prepared by @Sukairo-02, landing in next beta release |
Report hasn't been filed before.
What version of
drizzle-orm
are you using?0.36.1
What version of
drizzle-kit
are you using?0.28.0
Other packages
@neondatabase/serverless@0.10.3
Describe the Bug
TypeScript error
Please install
@neondatabase/serverlessto allow Drizzle ORM to connect to the database
when callingdrizzle
.Example from here https://orm.drizzle.team/docs/tutorials/drizzle-with-neon#connect-drizzle-orm-to-your-database
build fails with the following error
The text was updated successfully, but these errors were encountered: