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
Brief summary: When rootDir and outDir are involved as well as a project reference, source files within an individual project that has a dependency project would be compiled in alphabetical order. The consequence is that an A.ts that imports from B.ts will fail with Output file '.../B.d.ts' has not been built from source file '.../B.ts' but if I rename A.ts to C.ts everything works, as does removing the project reference or not using root/outDir.
The setup is hard to fully convey through text so here's a zip: repro.zip. npm install then npm run build to trigger the issue.
Expected behavior: Compiles both main and other projects successfully regardless of the names of the source files.
Actual behavior:
error TS6305: Output file '.../B.d.ts' has not been built from source file '.../B.ts'.
hwillson, stazz, abernix, nicholasgonzalezsc, s-ve and 9 more