I get it on localhost but I deploy to Render error occurs Error [ERR_MODULE_NOT_FOUND]: Cannot find module ‘/opt/render/project/backend/routes/QuizRouter.js’ imported from /opt/render/project/src/server.js.Please how to fix it?I upload with attached file
Hi there,
Cannot find module ‘/opt/render/project/backend/routes/QuizRouter.js
It looks like you’re missing the /src
directory in there, i.e. /opt/render/src
, which is the root directory Render provides for the service.
I also recommend ensuring that any files and folders referenced here have matching casing (i.e. uppercase/lowercase) between what’s in your code and what’s actually committed in your Git repository.
Let us know if you have any further questions.
Regards,
Mike
Render Support Engineer, MT (UTC-6, UTC-7 in Winter)
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.