我从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.
我在互联网上做了一些研究,以找到解决方案。我已经尝试过添加等解决方案
"stylePreprocessorOptions": {
"includePaths": ["src/scss"]
}
我一直无法解决这个问题。
再次安装node-sass
npm install node-sass