本机脚本无法生成角度分量

问题描述

我首先使用以下命令创建Nativescript Angular项目:

tns创建my-angular-app --ng

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

tns生成组件some-component

它不起作用,出现此错误

错误:无效的规则结果:Promise类的实例。

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

有人知道如何解决吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)