Node 22: DeprecationWarning: The punycode
module is deprecated.
#1148
Labels
bug
Something isn't working
punycode
module is deprecated.
#1148
Confirm this is a Node library issue and not an underlying OpenAI API issue
Describe the bug
Importing and using
openai
in the current LTS version of Node (v22) will give the following warning:To Reproduce
openai
package and use it in any way, e.g.The expected behaviour is that the
openai
works without warnings in the current LTS version of Node.There is no warning in older LTS versions of Node such as Node v18 and Node v20. However, as of this week, those are now in maintenance mode.
There are previous issues (#527 #750 #780) and a PR (#402) addressing this, but they have all been closed without any resolution or any new issues tracking the progress.
The root cause is the usage of
[email protected]
.Code snippets
No response
OS
macOS
Node version
Node v22
Library version
openai v4.68.4
The text was updated successfully, but these errors were encountered: