首先,我的问题不同于:Angular 12 warns about requested IE 11 support. Why?
我要升级到角度12并收到警告。
Support was requested for IE 9 & IE 10 in the project's browserslist configuration. These browsers are no longer officially supported with Angular v11 and higher我在根目录中有一个浏览列表文件。内容:
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries
# You can see what browsers were selected by your queries by running:
# npx browserslist
> 0.5%, last 2 Chrome versions, IE 9-11此外,我的package.json在依赖项下将其引用为:
"browserslist": "^4.17.6",我还在polyfills.js中注释了导入语句,以支持IE9、IE10和IE11
请建议我能做些什么来消除那个警告。
发布于 2022-01-04 19:10:47
角12不支持IE9或IE10,只有IE11:https://v12.angular.io/guide/browser-support
最后一个支持所有3的版本是角10:https://v10.angular.io/guide/browser-support
https://stackoverflow.com/questions/70583182
复制相似问题