zid
zid5mo ago

latest version of clerk incompatible with convex

@clerk/nextjs: ^5.0.12 // works
@clerk/nextjs: ^5.3.0 // does not work
@clerk/nextjs: ^5.0.12 // works
@clerk/nextjs: ^5.3.0 // does not work
Specifically, npx convex dev gives me
✘ [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.
✘ [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.
I plan to switch over to convex auth anyway, but still.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?