【发布时间】:2017-09-27 05:06:07
【问题描述】:
我提到了这个nativescript-appList Plugin。我收到此运行时错误 Cannot read property getPackageManager of undefined.
我在 angular2-nativescript 的构造函数中运行下面的代码
import * as AppList from "nativescript-applist";
// inside the constructor
console.log("First", "Test");
AppList.getInstalledApps(function(apps) {
console.log("Second", "Test");
}, {
withIcons: true
});
在命令提示符下我看不到这个日志 console.log("Second", "Test"); .我只能看到这个日志 console.log("First", "Test");
【问题讨论】:
标签: angular typescript nativescript angular2-nativescript