[ERROR] Could not resolve "node:async_hooks"
Hello,
I have this error when trying to run
Any idea?
I have this error when trying to run
npx convex devnpx convex devAny idea?
⠦ Preparing Convex functions...
✘ [ERROR] Could not resolve "node:async_hooks"
node_modules/@clerk/nextjs/dist/esm/server/clerkMiddleware.js:1:34:
1 │ import { AsyncLocalStorage } from "node:async_hooks";
╵ ~~~~~~~~~~~~~~~~~~
The package "node:async_hooks" wasn't found on the file system but is built into node. Are
you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove
this error.⠦ Preparing Convex functions...
✘ [ERROR] Could not resolve "node:async_hooks"
node_modules/@clerk/nextjs/dist/esm/server/clerkMiddleware.js:1:34:
1 │ import { AsyncLocalStorage } from "node:async_hooks";
╵ ~~~~~~~~~~~~~~~~~~
The package "node:async_hooks" wasn't found on the file system but is built into node. Are
you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove
this error.