-
Couldn't load subscription status.
- Fork 402
Description
Preliminary Checks
-
I have reviewed the documentation: https://clerk.com/docs
-
I have searched for existing issues: https://github.com/clerk/javascript/issues
-
I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)
-
This issue is not a question, general help request, or anything other than a bug report directly related to Clerk. Please ask questions in our Discord community: https://clerk.com/discord.
Reproduction
https://github.com/lobehub/lobe-chat
Publishable key
none pk
Description
Steps to reproduce:
- git clone https://github.com/lobehub/lobe-chat
- pnpm i
- pnpm run build
Expected behavior:
build success without warning
Actual behavior:
it will show error log of A Node.js API is used (process.cwd at line: 24) which is not supported in the Edge Runtime.
Import trace for requested module:
./node_modules/@clerk/nextjs/dist/esm/server/keyless-node.js
./node_modules/@clerk/nextjs/dist/esm/server/createGetAuth.js
./node_modules/@clerk/nextjs/dist/esm/server/index.js
./node_modules/@clerk/nextjs/dist/esm/server/keyless-node.js
A Node.js API is used (process.cwd at line: 39) which is not supported in the Edge Runtime.
Learn more: https://nextjs.org/docs/api-reference/edge-runtime
Environment
System:
OS: macOS 15.2
CPU: (10) arm64 Apple M1 Max
Memory: 73.48 MB / 64.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.11.0 - /usr/local/bin/node
Yarn: 1.22.19 - ~/Library/pnpm/yarn
npm: 9.2.0 - ~/Library/pnpm/npm
pnpm: 9.15.4 - ~/Library/pnpm/pnpm
bun: 1.0.26 - ~/Library/pnpm/bun
Browsers:
Brave Browser: 127.1.68.128
Chrome: 132.0.6834.111
Chrome Canary: 134.0.6983.0
Safari: 18.2