I've been trying to clone and run a project locally, and after following the instructions in the README.md, I encountered an error when executing npm run start
. The error message is as follows:
> [email protected] start
> node .
storybook-genie/src/converter.js:1
import { Configuration, OpenAIApi } from "openai";
^^^^^^^^^^^^^
SyntaxError: The requested module 'openai' does not provide an export named 'Configuration'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:132:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:214:5)
at async ModuleLoader.import (node:internal/modules/esm/loader:329:24)
at async loadESM (node:internal/process/esm_loader:34:7)
at async handleMainPromise (node:internal/modules/run_main:113:12)
Node.js v20.10.0
Should I follow the migration document here to make the necessary code changes? If needed, I am willing to undertake this task.
openai/openai-node#217