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

Failing to start #11

Open
astritzeqiri opened this issue Jul 11, 2024 · 2 comments
Open

Failing to start #11

astritzeqiri opened this issue Jul 11, 2024 · 2 comments

Comments

@astritzeqiri
Copy link

astritzeqiri commented Jul 11, 2024

I have a turborepo mono repo starter, and it was working correctly all along. All of the sudden the build step started failing.
If I try to start the app with start:watch: yarn clean && nest start --watch on the apps/backend it doesn't correctly build on the dist folder and it fails to start:


yarn run v1.22.19
$ yarn clean && nest start --watch
$ shx rm -rf dist
✔ Console Ninja extension is connected to Webpack, see https://tinyurl.com/2vt8jxzw
[5:12:24 pm] Starting compilation in watch mode...

[5:12:27 pm] Found 0 errors. Watching for file changes.

Error: Cannot find module '/Users/astritzeqiri/Sites/localhost/povio/princeton-hcl/opendelli-courier-backend-v2/apps/backend/dist/main'
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
    at Function.Module._load (node:internal/modules/cjs/loader:920:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47

The dist folder structure under the backend app used to be:

-- dist
----apps
-----backend
------scripts
------src
----packages
-----....

Now when its built it has change to only:

-- dist
----scripts
----src

Has anyone had this issue?

@astritzeqiri
Copy link
Author

And it doesn't really give me any errors or something indicating why that structure changed all of the sudden

@ejazahm3d
Copy link
Owner

@astritzeqiri Hi. Hope you are doing well. Can you share the steps to reproduce the error? Would love to help.

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