When TSC suddenly errors with cannot find module
TLDR
- If you have this error, double-check if your
rootDiris consistent. - I got this error from TSC, auto-flattening the folder structure.
On my TypeScript Node Server, I suddenly got the following error on the tsc command for production settings.