Skip to content

Error when building due to missing acquireMigrationLock() in dialog #30

@lukaso

Description

@lukaso

src/db/client.ts:14:14 - error ts(2352): Conversion of type 'D1Dialect' to type 'Dialect' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
The types of 'createAdapter().acquireMigrationLock' are incompatible between these types.

14 dialect: new D1Dialect({ database: d1DB }) as Dialect,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions