Javascript 最可能的原因是Zone.js之后加载了Promise polyfill(加载Zone.js时不需要polyfill Promise api)

Javascript 最可能的原因是Zone.js之后加载了Promise polyfill(加载Zone.js时不需要polyfill Promise api),javascript,angular,polyfills,zone.js,Javascript,Angular,Polyfills,Zone.js,我得到的错误 Error: Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten. Most likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.

我得到的错误

            Error: Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.
      Most likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)
          at Function.push../node_modules/zone.js/dist/zone.js.Zone.assertZonePatched (zone.js:58)
          at new NgZone (core.js:24212)
          at getNgZone (core.js:24925)
          at PlatformRef.push../node_modules/@angular/core/fesm5/core.js.PlatformRef.bootstrapModuleFactory (core.js:24823)
          at core.js:24867
          at exceljs.min.js:3
          at MutationObserver.n (exceljs.min.js:3)
          at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:391)
          at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runGuarded (zone.js:161)
          at MutationObserver.<anonymous> (zone.js:144)
要使用ES5传输代码,请使用dist/ES5路径

const ExcelJS=require('ExcelJS/dist/es5');
注意:ES5构建对许多不再使用的多边形填充具有隐式依赖性 由exceljs显式添加。 您需要将“core js”和“regenerator runtime”添加到依赖项和 在导入exceljs之前,请在代码中包含以下要求:

//exceljs需要多填充
要求('core-js/modules/es.promise');
要求('core-js/modules/es.object.assign');
需要('core-js/modules/es.object.keys');
要求(“再生器运行时/运行时”);
// ...
const ExcelJS=require('ExcelJS/dist/es5');
粗制滥造


我正在使用es6。所以我缺少什么。请帮助我

角度版本详细信息。

            Angular CLI: 7.3.9
        Node: 10.0.0
        OS: linux x64
        Angular: 8.0.0
        ... core

        Package                             Version
        -------------------------------------------------------------
        @angular-devkit/architect           0.13.9
        @angular-devkit/build-angular       0.13.9
        @angular-devkit/build-optimizer     0.13.9
        @angular-devkit/build-webpack       0.13.9
        @angular-devkit/core                7.3.9
        @angular-devkit/schematics          7.3.9
        @angular/animations                 7.2.15
        @angular/cdk                        8.1.4
        @angular/cli                        7.3.9
        @angular/common                     7.2.15
        @angular/compiler                   7.2.15
        @angular/compiler-cli               7.2.15
        @angular/forms                      7.2.15
        @angular/http                       7.2.15
        @angular/language-service           7.2.15
        @angular/material                   8.1.4
        @angular/platform-browser           7.2.15
        @angular/platform-browser-dynamic   7.2.15
        @angular/router                     7.2.15
        @ngtools/webpack                    7.3.9
        @schematics/angular                 7.3.9
        @schematics/update                  0.13.9
        rxjs                                6.3.3
        typescript                          3.2.4
        webpack 

到你提问的时候,你可能已经明白了这一点…从你的polyfills.ts中注释出这一行

// import 'zone.js/dist/zone'; // Included with Angular CLI.
            Angular CLI: 7.3.9
        Node: 10.0.0
        OS: linux x64
        Angular: 8.0.0
        ... core

        Package                             Version
        -------------------------------------------------------------
        @angular-devkit/architect           0.13.9
        @angular-devkit/build-angular       0.13.9
        @angular-devkit/build-optimizer     0.13.9
        @angular-devkit/build-webpack       0.13.9
        @angular-devkit/core                7.3.9
        @angular-devkit/schematics          7.3.9
        @angular/animations                 7.2.15
        @angular/cdk                        8.1.4
        @angular/cli                        7.3.9
        @angular/common                     7.2.15
        @angular/compiler                   7.2.15
        @angular/compiler-cli               7.2.15
        @angular/forms                      7.2.15
        @angular/http                       7.2.15
        @angular/language-service           7.2.15
        @angular/material                   8.1.4
        @angular/platform-browser           7.2.15
        @angular/platform-browser-dynamic   7.2.15
        @angular/router                     7.2.15
        @ngtools/webpack                    7.3.9
        @schematics/angular                 7.3.9
        @schematics/update                  0.13.9
        rxjs                                6.3.3
        typescript                          3.2.4
        webpack 
// import 'zone.js/dist/zone'; // Included with Angular CLI.