"Cannot find module 'openai'" when deploying in render.com

For some reason, when deploying my backend to Render, it cannot find the openai module. I have tried updating to the latest nodejs lts version, 22.11.0, but still it’s not working.

Does anyone have an idea what I could do?

maybe you need to npm install as well?

2 Likes

:flushed:

I have no idea how have I missed this. I also have no idea how it has been working for so long without this issue.

Thanks

1 Like

No worries! Sometimes we miss the simplest things because we are thinking way too complicated. :smile:

Feel free to mark my answer as the solution. :hugs: