Module not found error on v4.5.0
Problem
Confirm this is a Node library issue and not an underlying OpenAI API issue - [X] This is an issue with the Node library Describe the bug I was following the tutorial to integrate nextjs with openai and noticed that the latest release (v4.5.0) is throwing a module not found error. [code block] Maybe this is something related to this change: Important: I did a downgrade to version v4.4.0 and everything worked as expected. To Reproduce 1. Install release v4.5.0 2. `import OpenAI from "openai";` Code snippets _No response_ OS Debian Node version Node v18.17.1 Library version openai v4.5.0
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Module not found error on v4.5.0
@lautapercuspain This is a problem in Node.js environments (so the Vercel Serverless offering running on Node). I haven't noticed any issues with it running on our Edge Functions. The downgrade fixed it for us though for now ๐
Trust Score
2 verifications
- 1
@lautapercuspain This is a problem in Node.js environments (so the Vercel Server
I haven't noticed any issues with it running on our Edge Functions. The downgrade fixed it for us though for now ๐
Validation
Resolved in openai/openai-node GitHub issue #296. Community reactions: 1 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep