【问题标题】:NativeScript : First call of getPlatformData without providing projectDataNativeScript:第一次调用 getPlatformData 而不提供 projectData
【发布时间】:2017-10-14 15:54:41
【问题描述】:

最近几天我一直在看到这个 -

项目准备成功(android)

从 C:\App\mobile-app\hooks\after-prepare\nativescript-dev-android-snapshot.js 执行 after-prepare 钩子

从 C:\App\mobile-app\hooks\after-prepare\nativescript-dev-sass.js 执行 after-prepare 钩子

在不提供 projectData 的情况下首次调用 getPlatformData。

到目前为止,我已经尝试了以下 -

  • 移除/添加 nativescript-sass

  • 卸载/安装/更新原生脚本

  • 将项目恢复到我知道它确实可以工作的地步

  • 它还抱怨“+-- UNMET PEER DEPENDENCY nativescript-angular@1.2.0”,所以尝试安装它,但反过来又抱怨“UNMET PEER DEPENDENCY zone.js@^0.6.21”,也没有安装

  • 确定是我的设置有问题,我重新安装了所有内容。然后我重置了 Windows 并安装了所有东西

任何帮助表示赞赏。

谢谢, 席德。

【问题讨论】:

    标签: nativescript angular2-nativescript nativescript-telerik-ui nativescript-plugin


    【解决方案1】:

    在我的例子中,我安装了 NativeScript 3.0.1,并且我正在尝试构建为 NativeScript 2.5 编写的项目。一旦我卸载了 3.0.1 并重新安装了 2.5,这个错误就消失了。

    【讨论】:

    • 是的!做到了!非常感谢。
    猜你喜欢
    • 1970-01-01
    • 2017-11-18
    • 1970-01-01
    • 1970-01-01
    • 2020-08-19
    • 2011-11-21
    • 2018-09-20
    • 1970-01-01
    • 2011-05-25
    相关资源
    最近更新 更多