Nativescript Playground:未捕获的错误消息

Nativescript Playground: Uncaught error message

第一次使用 Nativescript,运行 一个使用 nativescript-contacts 的简单脚本 iOS (https://www.npmjs.com/package/nativescript-contacts) 并给我以下错误:

2019-05-21 19:20:32.059 nsplaydev[284:10490] PlayLiveSync: Initializing NativeScript runtime at /var/mobile/Containers/Data/Application/F19FB79E-A435-49E6-A978-308E1C976F0A/Documents/Playground/LiveSync
CONSOLE WARN file:///app/c210e62cd8f442b19651.worker.js:31673:12: Objective-C class name "UIDocumentInteractionControllerDelegateImpl" is already in use - using "UIDocumentInteractionControllerDelegateImpl2" instead.
2019-05-21 19:20:32.108 nsplaydev[284:10454] PlayLiveSync: Uncaught Exception
2019-05-21 19:20:32.109 nsplaydev[284:10454] PlayLiveSync: Sending crash report
2019-05-21 19:20:32.132 nsplaydev[284:10439] PlayLiveSync: Successfully sent uncaught error message onZN396nE
2019-05-21 19:20:32.133 nsplaydev[284:10439] PlayLiveSync: Successfully sent log message onZN396nE

How/where 我能看到错误日志吗?它生成的唯一标识符 (onZN396nE) 是什么?

谢谢!

据我了解,您不能 运行 Playground 上的程序依赖于本机 API,因为 playground 有一些 limitations。但是,它包含一些最有用的 NativeScript 插件,因此涵盖了开发应用程序时需要执行的各种任务。

nativescript-contacts 插件需要权限并且与平台的一部分交互 API 不是很直接。

你知道什么?我发现了问题:

(a) 部分代码如下。下面的templateUrl是错误的。应该是"login/login.component.hmtl"

import { Component } from "@angular/core";

@Component({
    selector: "gr-login",
    moduleId: module.id,
    templateUrl: "./login.component.html"
})
export class AppComponent {}