dannyeloD
Convex Community2y ago
3 replies
dannyelo

[ERROR] Could not resolve "node:async_hooks"

Hello,
I have this error when trying to run
npx convex dev

Any 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.
Was this page helpful?