Skip to content

A Node.js API is used <xxx> which is not supported in the Edge Runtime. #170

@LeopoldLerch

Description

@LeopoldLerch

When building we do see warnings like the following:

./node_modules/scheduler/cjs/scheduler.production.min.js
A Node.js API is used (setImmediate at line: 11) which is not supported in the Edge Runtime.
Learn more: https://nextjs.org/docs/api-reference/edge-runtime

Import trace for requested module:
./node_modules/scheduler/cjs/scheduler.production.min.js
./node_modules/scheduler/index.js
./node_modules/react-dom/cjs/react-dom.production.min.js
./node_modules/react-dom/index.js
./node_modules/next/dist/esm/client/script.js
./node_modules/next/dist/esm/api/script.js
./node_modules/next-runtime-env/build/script/env-script.js
./node_modules/next-runtime-env/build/script/index.js
./node_modules/next-runtime-env/build/index.js
./src/consts.ts
./src/i18n/routing.ts

seems to have to do something with using "env()"

can we do something about that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions