如何在Angular 8应用程序中支持Internet Explorer?
当我使用Angular CLI(8.0.0)生成项目时,运行ng serve,在Internet Explorer中打开应用程序,然后出现空白屏幕。 我看了看polyfills.ts文件,并取消了以下几行的注释: import 'classlist.js'; import 'web-animations-js'; 我还删除了所有core.js导入,因为Angular 8直接支持core.js 3.0。 我也跑了npm i。 package.json: "dependencies": { "@angular/animations": "~8.0.0", "@angular/common": "~8.0.0", "@angular/compiler": "~8.0.0", "@angular/core": "~8.0.0", "@angular/forms": "~8.0.0", "@angular/platform-browser": "~8.0.0", "@angular/platform-browser-dynamic": "~8.0.0", "@angular/router": "~8.0.0", "classlist.js": "^1.1.20150312", "rxjs": "~6.4.0", "tslib": "^1.9.0", "web-animations-js": "^2.3.1", "zone.js": "~0.9.1" }, "devDependencies": { "@angular-devkit/build-angular": "~0.800.0", "@angular/cli": "~8.0.0", …