【问题标题】:Nativescript Playground: Uncaught error messageNativescript Playground:未捕获的错误消息
【发布时间】:2019-05-22 02:30:36
【问题描述】:

第一次使用 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)是什么?

谢谢!

M

【问题讨论】:

    标签: nativescript nativescript-vue


    【解决方案1】:

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

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

    【讨论】:

      【解决方案2】:

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

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

      【讨论】:

      • 是的,对不起。贴在右页。第一次堆栈溢出。
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-01-21
      • 2012-12-03
      • 1970-01-01
      • 2011-07-14
      • 1970-01-01
      • 2022-01-08
      • 1970-01-01
      相关资源
      最近更新 更多