当我让 tns 生成组件电影时,我得到终端日志:找不到模块“@nativescript/schematics”。
我尝试了https://github.com/NativeScript/nativescript-schematics/issues/130的解决方案,但下一条终端消息是:
Error: Invalid rule result: Instance of class Promise.
包.json:
"dependencies": {
"@angular/animations": "~9.1.0",
"@angular/common": "~9.1.0",
"@angular/compiler": "~9.1.0",
"@angular/core": "~9.1.0",
"@angular/forms": "~9.1.0",
"@angular/platform-browser": "~9.1.0",
"@angular/platform-browser-dynamic": "~9.1.0",
"@angular/router": "~9.1.0",
"@nativescript/angular": "~9.0.0",
"@nativescript/theme": "~2.3.0",
"reflect-metadata": "~0.1.12",
"rxjs": "^6.5.0",
"tns-core-modules": "~6.5.0",
"zone.js": "~0.10.3"
"devDependencies": {
"@angular/cli": "^10.0.4",
"@angular/compiler-cli": "~9.1.0",
"@ngtools/webpack": "~9.1.0",
"nativescript-dev-webpack": "~1.5.0",
"tns-platform-declarations": "~6.5.0",
"typescript": "~3.8.3"
ng--版本
@angular-devkit/architect 0.1000.4
@angular-devkit/core 9.1.12
@angular-devkit/schematics 10.0.4
@angular/cli 10.0.4
@ngtools/webpack 9.1.12
@schematics/angular 10.0.4
@schematics/update 0.1000.4
rxjs 6.6.0
typescript 3.8.3
webpack 4.27.1