Render cant find files i imported

Error: Cannot find module ‘…/routes/tv_ideas.js’
Apr 28 01:24:04 AM Require stack:
Apr 28 01:24:04 AM - /opt/render/project/src/index.js
Apr 28 01:24:04 AM at Module._resolveFilename (node:internal/modules/cjs/loader:1082:15)

The ‘…/routes/tv_ideas.js’ is right their in the folder, but render cant find it

Hi there,

It’s hard to tell without access to your repo but a common cause for an error like this is that the casing on the file/folder is different to what your include is doing.


John B

Here is what my file structure look like… The App worked perfectly in developmemt.

The routes folder is the fifth folder…

What about the contents of the routes folder?

These are the folders inside the root folder.

last file we need to see the contents of, index.js please.

John B

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