我从Github下载了Ionic Cordova项目。我安装了该项目的所有依赖项。每当我运行命令“离子服务”时,都会出现此错误。
ERROR in ./src/theme/variables.scss (./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src??embedded!./node_modules/sass-loader/lib/loader.js??ref--14-3!./src/theme/variables.scss)
[ng] Module build failed (from ./node_modules/postcss-loader/src/index.js):
[ng] BrowserslistError: Unknown browser query `basedir=$(dirname "$(echo "$0" | sed -e 's`. Maybe you are using old Browserslist or made typo in query.
我在Internet上进行了一些研究,以找到解决方案。我尝试了添加
之类的解决方案"stylePreprocessorOptions": {
"includePaths": ["src/scss"]
}
我无法解决此问题。
答案 0 :(得分:0)
再次安装node-sass
npm install node-sass