【问题标题】:Angular + Nativescript Code Sharing Project DebuggingAngular + Nativescript 代码共享项目调试
【发布时间】:2019-02-18 20:25:52
【问题描述】:

我正在寻找一种在调试模式下运行应用程序的方法。 nativescript 客户端文档说要使用 tns debug androidtns debug android --emulator' 作为模拟器,但是我无法让它工作。该应用程序是一个带有 sass 的 Nativescript + Angular 代码共享项目。以下命令将创建一个全新的代码共享项目:

ng new -c=@nativescript/schematics sass-project --shared --style=scss

如果需要阅读有关代码共享项目创建的更多信息,您可以前往here

我尝试了一个常规的 nativescript 应用程序,该命令似乎可以工作,所以我不确定您是否需要采用稍微不同的方式来调试代码共享项目。

以下是我在物理和模拟设备上得到的以下错误日志:

【问题讨论】:

    标签: android angular debugging nativescript nativescript-codesharing


    【解决方案1】:

    我认为你应该在你使用的命令中添加“- - bundle”。

    【讨论】:

    • 我可以试试。我认为这仅适用于运行常规,例如'tns run android --bundle'
    猜你喜欢
    • 2019-04-11
    • 1970-01-01
    • 2019-02-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多