require() of ES Module is not supported planetscale serverless + sveltekit

Ssubhendupsingh3/20/2023
Hi, I am getting this error when I user planetscale serverless with drizzle orm

require() of ES Module D:\svelte-edge\node_modules\@planetscale\database\dist\index.js from D:\svelte-edge\node_modules\drizzle-orm\planetscale-serverless\session.js not supported.
Instead change the require of index.js in D:\svelte-edge\node_modules\drizzle-orm\planetscale-serverless\session.js to a dynamic import() which is available in all CommonJS modules.
Bbloberenober3/20/2023
It's fixed in drizzle-orm@beta
Ssubhendupsingh3/21/2023
Great
Ssubhendupsingh3/21/2023
I will try that out
Ssubhendupsingh3/21/2023
Great, this is working.