Closed jackvane closed 1 year ago
There is indeed a top-level await in the code now, caused by an optional OTEL runtime dependency, so this is expected. I don't think there's a way to avoid it.
This is unfortunate for projects that is restricted to cjs which doesn't support TLA. I'm using solid start and vercel adapter and have no control over which type of module it produces (only cjs even if I specify esm in the config), so this update recent broke my deployment builds.
Same problem here using sveltekit on cloudflare pages.
Maybe you could add an option to opt-out of telemtry?
https://github.com/drizzle-team/drizzle-orm/releases/tag/0.26.3
removed it in 0.26.3
Will put it back in later releases with different approach for setting it up
What version of
drizzle-orm
are you using?0.26.2
What version of
drizzle-kit
are you using?0.18.1
Describe the Bug
Just bumped drizzle-orm to 0.26.2 from 0.26.0 and I received this error while querying:
This also happens if I do a bump to 0.26.1.
Note that this will resolve the error in Next JS, but would prefer not to hack any webpack configs to get this working.
Expected behavior
No error.
Environment & setup
Node v19.0.0 Next 13.4.4