Skip to content
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]: Module '"drizzle-orm"' has no exported member 'drizzle'.ts(2305) #3161

Open
kaitakami opened this issue Oct 19, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@kaitakami
Copy link

What version of drizzle-orm are you using?

0.35.2

What version of drizzle-kit are you using?

0.26.2

Describe the Bug

Following this guide: https://orm.drizzle.team/docs/get-started/supabase-new

import { drizzle } from "drizzle-orm"; // Error: Module '"drizzle-orm"' has no exported member 'drizzle'.ts(2305)
import postgres from "postgres";

async function main() {
	const db = drizzle(postgres(process.env.DATABASE_URL!));
}
main();

Changing drizzle-orm to drizzle-orm/postgres-js fixed the issue. However docs use drizzle-orm.

#3058 (closed)

Expected behavior

No response

Environment & setup

pnpm 9.11.0
node.js v20.17.0

@kaitakami kaitakami added the bug Something isn't working label Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant