gpt4 book ai didi

angular - 警告 : 1 rules skipped due to selector errors: legend + * -> Cannot read property 'type' of undefined

转载 作者:行者123 更新时间:2023-12-05 01:23:20 24 4
gpt4 key购买 nike

自从我从 Angular v8 升级到 Angular v13 并从 v5.0 Bootstrap 到 v5.2 以来,我收到了这个警告,每次我按 ctrl+s 编译时 si 都很慢并且这个警告再次出现
这是我的 package.json 文件中的依赖项

  "dependencies": {
"@angular/animations": "~13.3.11",
"@angular/common": "~13.3.11",
"@angular/compiler": "~13.3.11",
"@angular/core": "~13.3.11",
"@angular/forms": "~13.3.11",
"@angular/platform-browser": "~13.3.11",
"@angular/platform-browser-dynamic": "~13.3.11",
"@angular/router": "~13.3.11",
"@auth0/angular-jwt": "^5.0.2",
"bootstrap": "^5.2.0-beta1",
"bootstrap-icons": "^1.8.3",
"express": "^4.18.1",
"feather": "0.0.6",
"feather-icons": "^4.29.0",
"http-proxy-middleware": "^2.0.6",
"path": "^0.12.7",
"rxjs": "~7.5.5",
"tslib": "^1.10.0",
"typescript": "~4.6.4",
"zone.js": "~0.11.5"
},
"devDependencies": {
"@angular-devkit/build-angular": "~13.3.7",
"@angular/cli": "~13.3.7",
"@angular/compiler-cli": "~13.3.11",
"@angular/language-service": "~13.3.11",
"@types/jasmine": "~3.3.8",
"@types/jasminewd2": "~2.0.3",
"@types/node": "~8.9.4",
"codelyzer": "^5.0.0",
"http-proxy-middleware": "^2.0.6",
"install": "^0.13.0",
"jasmine-core": "~3.4.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~6.3.20",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~2.0.1",
"karma-jasmine-html-reporter": "^1.4.0",
"npm": "^8.12.1",
"protractor": "~7.0.0",
"ts-node": "~7.0.0",
"tslint": "~5.15.0"
},
"resolutions": {
"autoprefixer": "10.4.5"
}

最佳答案

我有同样的问题,但我能够通过将以下配置属性添加到“angular.json”文件的“生产”build设置中来消除此警告:

            "optimization": {
"scripts": true,
"styles": {
"minify": true,
"inlineCritical": false
},
"fonts": true
},
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true

(注意:您的项目中可能只需要其中的一些来解决您的问题)

关于angular - 警告 : 1 rules skipped due to selector errors: legend + * -> Cannot read property 'type' of undefined,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72584084/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com