Search code examples
androidangularnativescriptangular2-nativescriptnativescript-angular

White screen after saving changes with NativeScript Angular HMR on Android emulator


I created a NativeScript 7.1 project with Angular 11 using tns create my-blank-ng --template @nativescript/template-blank-ng and then run it using tns run.

The app at first runs perfectly, but it only shows a white screen after saving changes which triggers hot reload.

Is there any way to make HMR work? Disabling HMR could be a workaround, but it's to annoying to have the app restart on each change.


Solution

  • It's a bug - fixed in nativescript-angular@11.0.1

    Release note: https://github.com/NativeScript/nativescript-angular/releases/tag/11.0.1