Top-level await is not available in the configured target environment ("node14")
Full description here: https://github.com/drizzle-team/drizzle-orm/issues/721
Is there a way to work around this?
3 Replies
We are preparing esm support for drizzle-kit in next release
so next update for drizzle-kit will fix this issue
@Andrew Sherman I don't think this is fixed.
we are using drizzle-orm@latest and getting this:
we've implemented the connection just as the docs say in the new release:
Please send help!
Drizzle Kit still don't have support for esm. We are waiting for a bun.js release to move to it for a proper esm/cjs support in drizzle-kit
drizzle-orm should support both esm and cjs