Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/31.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular Nativescript无法生成角度组件_Angular_Nativescript_Angular2 Nativescript_Nativescript Angular - Fatal编程技术网

Angular Nativescript无法生成角度组件

Angular Nativescript无法生成角度组件,angular,nativescript,angular2-nativescript,nativescript-angular,Angular,Nativescript,Angular2 Nativescript,Nativescript Angular,我首先使用以下方法创建Nativescript Angular项目: tns创建我的角度应用程序--ng 现在我想生成新的角度分量: tns生成一些组件 它不起作用,我得到了这个错误: 错误:无效的规则结果:类承诺的实例 有人知道怎么解决这个问题吗 Error: Invalid rule result: Instance of class Promise. at t.project (..../@nativescript/schematics-executor/dist/index.js

我首先使用以下方法创建Nativescript Angular项目:

tns创建我的角度应用程序--ng

现在我想生成新的角度分量:

tns生成一些组件

它不起作用,我得到了这个错误:

错误:无效的规则结果:类承诺的实例

有人知道怎么解决这个问题吗

Error: Invalid rule result: Instance of class Promise.
    at t.project (..../@nativescript/schematics-executor/dist/index.js:250:1038)
    at t._tryNext (..../@nativescript/schematics-executor/dist/index.js:30:1878)
    at t._next (..../@nativescript/schematics-executor/dist/index.js:30:1780)
    at t.next (..../@nativescript/schematics-executor/dist/index.js:16:1093)
    at e._subscribe (..../@nativescript/schematics-executor/dist/index.js:74:13873)
    at e._trySubscribe (..../@nativescript/schematics-executor/dist/index.js:16:4641)
    at e.subscribe (..../@nativescript/schematics-executor/dist/index.js:16:4427)
    at e.call (..../@nativescript/schematics-executor/dist/index.js:30:1459)
    at e.subscribe (..../@nativescript/schematics-executor/dist/index.js:16:4299)
    at ..../@nativescript/schematics-executor/dist/index.js:145:10377