ejazahm3d / fullstack-turborepo-starter

Fullstack Turborepo starter. Typescript, Nestjs, Nextjs, Tailwind, Prisma, Github Actions, Docker, And Reverse proxy configured
MIT License
486 stars 58 forks source link

Failing to start #11

Open astritzeqiri opened 1 month ago

astritzeqiri commented 1 month ago

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 commented 1 month ago

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

ejazahm3d commented 1 month ago

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