nativescript - 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)是什么?
谢谢!
米
解决方案
你知道什么?我发现了问题:
(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 {}
推荐阅读
- c# - Microsoft.Azure.ServiceBus - SubscriptionClient 忽略 RetryPolicy (RetryExponencial)
- sql - 修剪 VB 代码中的开头和结尾空格
- r - R中的约束加权线性回归
- javascript - 如何让导航器对较小的窗口做出反应?
- c#-4.0 - 如何在 Web API 核心中解码开放 id 连接服务器访问令牌
- powershell - 删除文件名的初始部分
- cmake - 我认为 cmake 没有链接我的班级,cmakelists.text 中的错误可能是罪魁祸首
- sql - 创建表时如何设置所有列不为空
- python-3.x - XGboost:无法在管道中传递 eval_set 的验证数据
- python-3.x - Selenium 选择第一个包含文本匹配的按钮