The error says:
Error [ERR_MODULE_NOT_FOUND]: Cannot find module ‘/opt/render/project/server/routes/posts.js’ imported from /opt/render/project/src/index.js
Here is my github repo: GitHub - imronakk/memory-backend
The error says:
Error [ERR_MODULE_NOT_FOUND]: Cannot find module ‘/opt/render/project/server/routes/posts.js’ imported from /opt/render/project/src/index.js
Here is my github repo: GitHub - imronakk/memory-backend
Hi,
It looks like you’re referencing a file too far up the path. Render will clone your repo into /opt/render/project/src/
.
The “imported from” files shows the it’s being read is index.js
in the root of your repo:
/opt/render/project/src/index.js
But the file being referenced doesn’t contain the src
folder:
/opt/render/project/server/routes/posts.js
Which would appear to traverse too high up the path.
Also, the repo you linked is either private or deleted.
Alan
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.