AbhishekA
Convex Community11mo ago
32 replies
Abhishek

Clerk installation failing with convex

I am updating my clerk and nextjs application and getting this error

⠙ Bundling component schemas and implementations...
✘ [ERROR] Could not resolve "node:async_hooks"

    node_modules/@clerk/nextjs/dist/esm/server/middleware-storage.js:2:34:
      2 │ 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.
✖ It looks like you are using Node APIs from a file without the "use node" directive.
See https://docs.convex.dev/functions/runtimes#nodejs-runtime

Any solution on this ?
Was this page helpful?