Error: Cannot find module '/opt/render/project/src/dist/src/index.js'

I have been trying to deploy my typescript. So I have a script that starts the dist folder when it downgrades the typescript to javascript but unfortunately.

I have been getting this error I don’t know what I am doing wrong. Please I did love feedback hopefully it will help me out.

Hi,

The error highlight in your screenshot is showing the file doesn’t exist.

This might be because…

  • …the path is incorrect, or
  • …it requires a build script to be run to generate the file(s) (implied by dist in the path), or
  • …it’s incorrectly cased. Linux filesystem are case-sensitive, e.g. ../index.js is a different file to ../Index.js

Double-checking the points above would be a good place to start.

Alan

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