Need help to resolve: Error: Cannot find module '/opt/render/project/src/server.js'

  throw err;
Error: Cannot find module '/opt/render/project/src/server.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)
    at Module._load (node:internal/modules/cjs/loader:984:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
    at node:internal/main/run_main_module:28:49 {
  requireStack: []

did you find a solution?
i am facing a similar error


These will be code issues.

anshika_gupta - you maybe referencing a path incorrectly, or maybe the casing is incorrect. Render uses Linux with a case-senstive filesystem, so server.js would be different from Server.js

Spriha_Anand - I can see my colleague has replied to the ticket you also opened. For now, keep the conversation in one place (on the ticket). Then you can update this post when you get to the solution.