You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building a new project created using the cloudflare-d1 template I get the error [commonjs--resolver] [plugin vite:resolve] Cannot bundle Node.js built-in "node:async_hooks" imported from "database/context.ts". Consider disabling ssr.noExternal or remove the built-in dependency.
I resolved this by adding external: ["node:async_hooks"], to vite.config.ts, on line 24:
When building a new project created using the
cloudflare-d1
template I get the error[commonjs--resolver] [plugin vite:resolve] Cannot bundle Node.js built-in "node:async_hooks" imported from "database/context.ts". Consider disabling ssr.noExternal or remove the built-in dependency.
I resolved this by adding
external: ["node:async_hooks"],
to vite.config.ts, on line 24:The text was updated successfully, but these errors were encountered: