ed-roh / chat-app

Build a Chat App with ChatGPT
143 stars 91 forks source link

Error on the server side. #3

Open Ruchi0903 opened 11 months ago

Ruchi0903 commented 11 months ago

I am a new developer and I am seeing an error which states that "import { Configuration, OpenAIApi } from "openai"; SyntaxError: The requested module 'openai' does not provide an export named 'Configuration' "

This import is done in ./server/index.js

Can you please help me out with this error? Why is it showing? I have checked each line of code and there's no mistake in the code.

surajthx commented 10 months ago

@Ruchi0903 downgrade openai npm version to "openai": "^3.2.1"