Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
Command (mark with an
x)Is this a regression?
I think yes, it was working for us I believe in version 7, but a project from scratch shows the error now.
Description
When files are changed by git (for example), the rebuild doesn't happen correctly. There is an error "Module build failed" which seems to come from some virtual file cache that is (I suppose) not correctly invalidated.
It's not expected to have to save (or touch) module.ts files (or any file, really) when changing from a branch to the other. Files are modified and it should retrigger a compilation, here it seems that the file rename is taken into account but not the module change (because a "touch" on the module makes the compilation work again).
This is a minimal reproduction on a very simple app but on a bigger production app where many engineers collaborate, we have to restart ng serve everytime we switch from a branch to another which is a very big pain.
Anything else relevant?
Reproduced from on an Ubuntu 20.04.1 LTS laptop with 64-bit (pretty standard).
Note: to fix the compilation, sometimes I have to touch all files that were changed during the git branch change. (I also have to
touch src/app/app2.component.tsin my example above to rebuild correctly)