Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module index.js while starting from hosting service #2

Open
LeonGuerreroGit opened this issue Feb 5, 2023 · 1 comment

Comments

@LeonGuerreroGit
Copy link

Error: Cannot find module '/opt/render/project/src/dist/index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (internal/modules/cjs/loader.js:308:19)
at Function.Module._findPath (internal/modules/cjs/loader.js:521:18)
at resolveMainPath (internal/modules/run_main.js:12:25)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:66:24)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
path: '/opt/render/project/src/package.json',
requestPath: '/opt/render/project/src'
}

@keisanng
Copy link

Did you run the build command?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants