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

Error: Cannot find module when trying to start the app #155

Open
acneupane opened this issue Aug 3, 2024 · 2 comments
Open

Error: Cannot find module when trying to start the app #155

acneupane opened this issue Aug 3, 2024 · 2 comments

Comments

@acneupane
Copy link

Getting this error after trying to start the app with "node backend/dist/src/main" on v1.11.

C:\Users\Hoss\reiverr>node backend/dist/src/main
node:internal/modules/cjs/loader:1148
throw err;
^

Error: Cannot find module 'C:\Users\Hoss\reiverr\backend\dist\src\main'
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
at Module._load (node:internal/modules/cjs/loader:986:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

Node.js v20.14.0

@aleksilassila
Copy link
Owner

Did you run the required commands defined in https://github.com/aleksilassila/reiverr?tab=readme-ov-file#building-from-source before running that command?

@blw9u2012
Copy link

@acneupane I ran into this as well, but this was because I ran:
node backend/dist/src/main. From the backend/ directory I ran, node dist/src/main and everything started just fine.

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

3 participants