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]: SyntaxError: The requested module 'drizzle-orm' does not provide an export named 'lte' #4079

Open
1 task done
lhr0909 opened this issue Feb 6, 2025 · 2 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@lhr0909
Copy link

lhr0909 commented Feb 6, 2025

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

What version of drizzle-kit are you using?

0.30.4

Other packages

No response

Describe the Bug

We were integrating @sentry/node into the project that uses drizzle-orm, and developing using vite dev server. This issue was encountered during development.

We followed Sentry's documentation to integrate instrumentation. We are not using any monorepo setup.

After bundling and building the code for production, the issues goes away even the Sentry instrumentation is present.

Base project setup with Drizzle, the bundler and builder: https://github.com/xanthous-tech/hono-astro-remix-template

I can try to provide a repro on a branch.

This is related in #3726 , but it is unresolved, so I re-opened it.

@lhr0909 lhr0909 added the bug Something isn't working label Feb 6, 2025
@bensenescu
Copy link

bensenescu commented Feb 11, 2025

I also ran into this.

The build is working now after I moved the operators to import from drizzle-orm/sql. Not sure if this will work permenantly since the problem seems to be intermittent.

import { SQL, sql } from "drizzle-orm";
import { inArray, and, eq } from "drizzle-orm/sql";

@lhr0909
Copy link
Author

lhr0909 commented Feb 11, 2025

Thank you @bensenescu for providing a workaround. It would still be great if the Drizzle team can provide insights on why this is happening and hopefully a proper solution from either the Sentry node package or Drizzle ORM.

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