Skip to content

Deprecation Warning for punycode Module Usage #750

@nachodeh

Description

@nachodeh

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

Hello,

I've encountered a deprecation warning in my project that appears to be originating from this library. When running my Next.js application, the following deprecation warning is emitted:

(node:14106) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.

When removing the OpenAI dependency, the warning is gone.

To Reproduce

  1. Add the openai dependency: import OpenAI from "openai"
  2. Run next build

Code snippets

No response

OS

macOS

Node version

v21.7.1

Library version

4.32.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions