You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this should be posted here or in nestjs/nest-cli
PR #124 introduced incremental: true to the tsc template.
The *.tsbuildinfo file, an artifact of the incremental build process, is not being removed by rimraf in prebuild, or by the nest cli itself.
Because prebuild removes the dist folder, but not build info file, tsc does not build all modules correctly. This can cause a very nondescript MODULE_NOT_FOUND error to be thrown by node when trying to find main.js, which will not exist for larger projects that take a few seconds to do a fresh compile.
The text was updated successfully, but these errors were encountered:
Closing this, found out this is actually just an issue with my project, which used a slightly modified version of this starter and exhibits a bug in tsc itself
Not sure if this should be posted here or in nestjs/nest-cli
PR #124 introduced
incremental: true
to the tsc template.The
*.tsbuildinfo
file, an artifact of the incremental build process, is not being removed byrimraf
in prebuild, or by thenest
cli itself.Because
prebuild
removes thedist
folder, but not build info file,tsc
does not build all modules correctly. This can cause a very nondescriptMODULE_NOT_FOUND
error to be thrown bynode
when trying to findmain.js
, which will not exist for larger projects that take a few seconds to do a fresh compile.The text was updated successfully, but these errors were encountered: