I'm currently in the process of developing an application with Nativescript Sidekick using angular/typescript.
Upon attempting to preview the app on my android devices, I continuously encounter the following errors.
Despite multiple attempts at running the preview on different android devices, the same set of errors persist.
Interestingly, whenever modifications are made to the app.component.ts file, the Nativescript preview app starts displaying a list of errors as detailed below:
The following code snippet is functional:
import { Component } from "@angular/core";
@Component({
moduleId: module.id,
selector: "ns-app",
templateUrl: "app.component.html"
})
export class AppComponent {}
However, this particular code snippet does not work:
import { Component } from "@angular/core";
@Component({
selector: "gr-login",
moduleId: module.id,
templateUrl: "./login/login.component.html"
})
export class AppComponent {}
A series of error logs from device Marvin indicate various issues including Angular running in development mode, Hot Module Replacement (HMR) checks for updates, and failed view creation leading to uncaught exceptions.