Skip to content

Angular 12 ng build --watch won't update running ionic serve application #20962

@R4yYx

Description

@R4yYx

🐞 Bug report

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

Yes it used to work with @angular-devkit/build-angular: 0.1102.13

Description

Building an Angular lib with the newest version (ng build), doesn't update the ionic application using this lib, run with ionic serve. With bigger libs the ng build process can outrun the serve or gets stuck.

🔬 Minimal Reproduction

Can be reproduced using this bug repo. First run ng build --watch in the lib folder, then ionic serve in the app folder. Changing anything in the lib component back-button won't update it in the application, even though both app and lib recompile.

To change to the working version run npm run goodvers
Updating anything now will update it in the browser like it is supposed to be.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions