Skip to content

[BUG]: Module '"drizzle-orm"' has no exported member 'sql'. #4337

Open
@tanushmahalka

Description

@tanushmahalka

Report hasn't been filed before.

  • I have verified that the bug I'm about to report hasn't been filed before.

What version of drizzle-orm are you using?

0.41.0

What version of drizzle-kit are you using?

0.30.6

Other packages

No response

Describe the Bug

I am using supabase db,
when I pull it successfully generates a schema file,

but then it shows ts error for this import

import { sql } from "drizzle-orm"
Error -> Module '"drizzle-orm"' has no exported member 'sql'.ts(2305)

Why is that?

I think primarily its used in
createdAt: timestamp("created_at", { withTimezone: true, mode: 'string' }).default(sqlCURRENT_TIMESTAMP).notNull(),

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions