我遵循的是NativeScript / Angular的正式入门,并在tns run android
上进行this repo的开发时,我得到以下信息:
从/Projects/course-exercise-files-nativescript-angular-getting-started-guide/chapter2/02_07_end/Groceries/hooks/before-watch/nativescript-dev-sass.js执行监视前挂钩 找到对等节点ass 没有输入文件被发现。
SASS编译器,退出代码1
失败
我的节点版本是:在Mac OS Mojave 10.14.2上为10.15.1
这是我的package.json:
{
"nativescript": {
"id": "org.nativescript.Groceries",
"tns-android": {
"version": "5.0.0"
},
"tns-ios": {
"version": "5.0.0"
}
},
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"repository": "<fill-your-repository-here>",
"dependencies": {
"@angular/animations": "7.0.0",
"@angular/common": "7.0.0",
"@angular/compiler": "7.0.0",
"@angular/core": "7.0.0",
"@angular/forms": "7.0.0",
"@angular/http": "7.0.0",
"@angular/platform-browser": "7.0.0",
"@angular/platform-browser-dynamic": "7.0.0",
"@angular/router": "7.0.0",
"nativescript-angular": "7.0.0",
"nativescript-theme-core": "1.0.4",
"reflect-metadata": "0.1.10",
"rxjs": "6.3.0",
"tns-core-modules": "5.0.2",
"zone.js": "0.8.4"
},
"devDependencies": {
"@nativescript/schematics": "~0.4.0",
"codelyzer": "~4.5.0",
"nativescript-dev-sass": "~1.6.0",
"nativescript-dev-typescript": "~0.7.0",
"nativescript-dev-webpack": "~0.18.0",
"tslint": "~5.11.0",
"typescript": "^3.1.6",
"@angular/compiler-cli": "~7.0.0",
"@ngtools/webpack": "~7.0.0"
},
"readme": "NativeScript Application"
}
我试过的其他问题进行了讨论,但没有成功,很多建议。
答案 0 :(得分:0)
仅当您的项目中甚至没有一个SCSS文件时,您才会看到该错误。将至少一个SCSS文件添加到您的项目中,错误应该消失了。