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]: Transaction causes TS error #3738

Closed
1 task done
camflan opened this issue Dec 10, 2024 · 1 comment
Closed
1 task done

[BUG]: Transaction causes TS error #3738

camflan opened this issue Dec 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@camflan
Copy link

camflan commented Dec 10, 2024

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.38.0

What version of drizzle-kit are you using?

0.38.0

Other packages

drizzle-valibot@0.3.0

Describe the Bug

After upgrading to drizzle 0.38.0, all of my uses of db.transaction(async tx => {}) throw a TS error during typechecking.

Example,

src/app/actions.ts:382:16 - error TS2589: Type instantiation is excessively deep and possibly infinite.

382   return await db.transaction(async tx => {
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
383     const [createdResource] = await tx
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
425     };
    ~~~~~~
426   });
    ~~~~
@L-Mario564
Copy link
Collaborator

Assuming this is related to #3751, I'll be closing this issue in favor of that one.

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

2 participants