Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: A Node.js API is used (process.nextTick) which is not supported in the Edge Runtime. #6

Open
magellan314 opened this issue Oct 9, 2023 · 0 comments

Comments

@magellan314
Copy link

Steps to reproduce

Run entire install step(s), with existing issues listed, and attempt to ask question in localhost browser.

Expected result

I assume question should be answered by chatbot.

Actual result

I receive an error in terminal:
Error: A Node.js API is used (process.nextTick) which is not supported in the Edge Runtime.

Environment

Macbook M2

Logs, links

Full error:
npm run dev

pgqa@0.1.0 dev
next dev

▲ Next.js 13.5.4

✓ Ready in 5.8s
⚠ Fast Refresh had to perform a full reload. Read more: https://nextjs.org/docs/messages/fast-refresh-reload
✓ Compiled / in 630ms (197 modules)
⚠ ./node_modules/@neondatabase/serverless/index.js
Critical dependency: the request of a dependency is an expression

Import trace for requested module:
./node_modules/@neondatabase/serverless/index.js
./node_modules/@neondatabase/serverless/index.mjs
○ Compiling /api/askme ...
Querying database...
Error: A Node.js API is used (process.nextTick) which is not supported in the Edge Runtime.
Learn more: https://nextjs.org/docs/api-reference/edge-runtime
...

⨯ node_modules/@neondatabase/serverless/index.js (43:24657) @ nextTick
⨯ uncaughtException: A Node.js API is used (process.nextTick) which is not supported in the Edge Runtime.
Learn more: https://nextjs.org/docs/api-reference/edge-runtime
null
⨯ node_modules/@neondatabase/serverless/index.js (43:24657) @ nextTick
⨯ uncaughtException: A Node.js API is used (process.nextTick) which is not supported in the Edge Runtime.
Learn more: https://nextjs.org/docs/api-reference/edge-runtime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant