Command
build
Is this a regression?
The previous version in which this bug was not present was
Angular 12
Description
Hi Team,
We are having issues with Angular not loading changes of symlinked files. It appears to build the first time and cache the output. Changing the file shows Angular rebuilding but it uses the old version. You have to kill ng build and start again.
Our project is in single Git repository. It consists of an Angular 14 front end and a Node backed API using NestJS. We also have model folder that contains shared DTO's and utilities.
The simplified folder structure is as follows -
/
angularapp
libs/
model (symlink of /model)
nodeapp
libs/
model (symlink of /model)
model
We have been using the structure since Angular 2 and I believe it worked up until you switch to WebPack 5.
Minimal Reproduction
- Create an Angular Project
- Create a folder outside the project called model
- Symlink the folder inside the Angular project eg - /angularapp/model
- Add files to the model folder.
- Do a build in watch mode
- Change the contents of a file in the model folder
- Wait for watcher to finish build
- Refresh the browser and the change will not be visible
- Cancel the watch build
- Build again
- Refresh the browser and the change will be visible.
Exception or Error
No response
Your Environment
Angular CLI: 14.2.1
Node: 16.15.1
Package Manager: npm 8.11.0
OS: darwin arm64
Angular: 14.2.0
... animations, cdk, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic
... platform-server, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1402.1
@angular-devkit/build-angular 14.2.1
@angular-devkit/core 14.2.1
@angular-devkit/schematics 14.2.1
@angular/cli 14.2.1
@schematics/angular 14.2.1
rxjs 7.5.5
typescript 4.6.2
Anything else relevant?
No response
Command
build
Is this a regression?
The previous version in which this bug was not present was
Angular 12
Description
Hi Team,
We are having issues with Angular not loading changes of symlinked files. It appears to build the first time and cache the output. Changing the file shows Angular rebuilding but it uses the old version. You have to kill ng build and start again.
Our project is in single Git repository. It consists of an Angular 14 front end and a Node backed API using NestJS. We also have model folder that contains shared DTO's and utilities.
The simplified folder structure is as follows -
We have been using the structure since Angular 2 and I believe it worked up until you switch to WebPack 5.
Minimal Reproduction
Exception or Error
No response
Your Environment
Anything else relevant?
No response