首页 > 解决方案 > Nativescript Playground:未捕获的错误消息

问题描述

第一次使用 Nativescript,运行一个简单的脚本,它使用 iOS 的 nativescript-contacts ( 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

如何/在哪里查看错误日志?它生成的唯一标识符(onZN396nE)是什么?

谢谢!

标签: nativescriptnativescript-vue

解决方案


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

(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 {}

推荐阅读