Open ezeamin opened 1 day ago
It also happens with:
home:build: ../../node_modules/scheduler/cjs/scheduler.production.min.js
home:build: A Node.js API is used (setImmediate at line: 11) which is not supported in the Edge Runtime.
home:build: Learn more: https://nextjs.org/docs/api-reference/edge-runtime
Describe the feature / bug 📝:
These warnings show when building a nextjs app (v14), with npm, pnpm, and bun on a docker container (nextjs detects it as "edge", so it shows the messages).
I'm trying to replicate the bug in an independent project, but I can't find how. However, if it helps, I will leave here the
getToken()
code, where this error is showing according to the stacktrace.