You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.)"
Angular 5
o exceljs.min.js:3
My service.ts file
import { Injectable } from '@angular/core'; import * as Excel from "exceljs/dist/exceljs.min.js"; import * as fs from 'file-saver'; @Injectable({ providedIn: 'root' }) export class ExcelserviceService {
constructor() { }
generatereport(dummydata):void{
let workbook = new Excel.Workbook();
let worksheet = workbook.addWorksheet('Car Data');