Module Not Found in web server node js

while deploying the Node server i got this error [ERR_MODULE_NOT_FOUND]: Cannot find module '/opt/render/project/src/config/coudinary.js' imported from /opt/render/project/src/controller/catagoriesController.js
but my localhost is working absolutely without any warnings and errors.

here’s build command

Facing same thing here, i dont know why there is no reponse here yet.

Hey,

In general, when “ERR_MODULE_NOT_FOUND” errors occur with your own files. You should check…

  1. That the “root directory” of your service is correct and that the file you’re requesting is actually there
  2. The casing of the files you’re creating and calling or look for any typos, for example, “catagoriesController” and “coudinary” seem to have both a typo here

If you’re still encountering any issues after checking these 2 options, please open a support ticket via the “Contact Support” form in the dashboard.

Regards.
Jérémy, Render Support

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.