Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/opt/render/project/src/utils/apiResponse.js' imported from /opt/render/project/src/controllers/user.controller.js

Error [ERR_MODULE_NOT_FOUND]: Cannot find module ‘/opt/render/project/src/utils/apiResponse.js’ imported from /opt/render/project/src/controllers/user.controller.js

I am getting this error even though the path is correct.

Hey,

Make sure ‘apiResponse.js’ actually exists with the same casing within your repo. Linux is case sensitive.

Jérémy.
Render Support, UTC+3