我在
ng build
期间遇到错误
[WARNING] 6 rules skipped due to selector errors:
.amplify-accordion__item:where() -> Empty sub-selector
.amplify-accordion__item:where() -> Empty sub-selector
0% -> Unmatched selector: %
50% -> Unmatched selector: %
0% -> Unmatched selector: %
50% -> Unmatched selector: %
我已将我的应用程序从
Angular v16
升级到 Angular v17
并使用下面给出的当前最新版本更新了 aws
软件包。
"dependencies": {
// skipped rest of the packages
"@aws-amplify/ui-angular": "^5.0.14",
"@aws-sdk/client-quicksight": "^3.574.0",
"amazon-quicksight-embedding-sdk": "^2.7.0",
"aws-amplify": "^6.3.0",
}
通过将以下配置添加到
production
文件中的 angular.json
解决了此问题。
"configurations": {
// skipped rest of the code for clarity
"production": {
"optimization": {
"scripts": true,
"styles": {
"minify": true,
"inlineCritical": false
},
"fonts": true
}
}
// skipped rest of the code for clarity
}