Whenever I execute npm run build
, which in turn runs ng build -c production
, the build process completes successfully. However, throughout this process, the command prompt displays a warning message:
Warning: 303 rules skipped due to selector errors:
0% -> Unmatched selector: %
20% -> Unmatched selector: %
53% -> Unmatched selector: %
40% -> Unmatched selector: %
43% -> Unmatched selector: %
70% -> Unmatched selector: %
80% -> Unmatched selector: %
90% -> Unmatched selector: %
...
Is there a solution to eliminate this warning?
package.json
:
{
"name": "wepod-clients",
"version": "3.2.3",
"scripts": {
"ng": "ng",
"start": "node patch.js && ng serve",
"serve-auth": "ng run wepod-app:serve-auth-standalone:production",
"build": "node patch.js && node --max_old_space_size=8192 ./node_modules/@angular/cli/bin/ng run wepod-app:app-shell:production && ng run wepod-app:auth-standalone:production",
"server": "npm run build && http-server -p 9090 -c-1 dist",
"test": "ng test",
"lint": "ng lint --fix",
"e2e": "ng e2e",
"postinstall": "node patch.js && ngcc",
"postbuild": "node post-build.js",
"prepare": "husky install",
"build-latest": "git pull origin production && npm run build"
},
"private": true,
"dependencies": {
"@angular/animations": "^13.0.0",
"@angular/cdk": "^13.0.0",
"@angular/cli": "^13.0.1",
"@angular/common": "^13.0.0",
...
},
"devDependencies": {
"@angular-devkit/build-angular": "^13.0.1",
"@angular-devkit/core": "^13.0.1",
"@angular/compiler-cli": "^13.0.0",
"@angular/language-service": "^13.0.0",
...
},
"browser": {
"fs": false,
"path": false,
"os": false
}
}