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

Build Warnings when building for Edge Runtime #1118

Open
1 task done
karlomedallo opened this issue Oct 4, 2024 · 0 comments
Open
1 task done

Build Warnings when building for Edge Runtime #1118

karlomedallo opened this issue Oct 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@karlomedallo
Copy link

Confirm this is a Node library issue and not an underlying OpenAI API issue

  • This is an issue with the Node library

Describe the bug

I see:

../../node_modules/.pnpm/[email protected][email protected]/node_modules/openai/core.mjs
A Node.js API is used (process.version at line: 575) which is not supported in the Edge Runtime.
Learn more: https://nextjs.org/docs/api-reference/edge-runti

To Reproduce

  1. create a route handler in NextJS that is configured to run in edge
  2. import openai package
  3. run build

Code snippets

No response

OS

macOS

Node version

v20.16.0

Library version

4.67.1

@karlomedallo karlomedallo added the bug Something isn't working label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant