Hi everyone! I am facing an issue while trying to deploy my Express backend, which includes a connection with the OpenAI API. The problem arises when I import the OpenAI package, leading to the following error:
If anyone in the community has encountered a similar problem or has insights on how to resolve this issue, your assistance would be greatly appreciated.
Quick update: I’ve successfully set up a separate backend project, and it’s up and running. However, I’ve noticed a quirk – the server file exclusively works with .mjs files, allowing the use of import statements.