SheetJS / sheetjs

📗 SheetJS Spreadsheet Data Toolkit -- New home https://git.sheetjs.com/SheetJS/sheetjs
https://sheetjs.com/
Apache License 2.0
35.02k stars 8k forks source link

QUOTE not defined #2820

Open sumitkoundilya opened 1 year ago

sumitkoundilya commented 1 year ago

Capture Angular CLI: 14.2.11 Node: 14.21.3 Package Manager: npm 6.14.18 rxjs 7.5.7 typescript 4.7.4

sumitkoundilya commented 1 year ago

Capture Is this because of semicolon? var APOS = "'"; QUOTE = '"' to var APOS = "'", QUOTE = '"'

tusharrana786 commented 1 year ago

@sumitkoundilya yeah it is due to semicolon and semicolon should be replaced by ,

johnLamberts commented 1 year ago

It's not working though

philip-firstorder commented 11 months ago

Getting also this error, is it solved?

johnLamberts commented 11 months ago

Yes, go to the documentation. I literally npm install the cdn links from there.

I mean, in my case. I already tried their solution but I still go back to the documentation then I found my solution anw.

WiharlleyWill commented 7 months ago

Use XLSX lib.

`import * as XLSX from 'xlsx'; ...

exportToExcel() { const fileName = 'test.xlsx';

const ws: XLSX.WorkSheet = XLSX.utils.json_to_sheet(this.arr);
const wb: XLSX.WorkBook = XLSX.utils.book_new();
XLSX.utils.book_append_sheet(wb, ws, 'test');

XLSX.writeFile(wb, fileName);

} `

SweydManaf commented 7 months ago

has vulnerability

WiharlleyWill commented 7 months ago

has vulnerability

report where there is vulnerability. It is not enough to just affirm.

sumitkoundilya commented 5 months ago

It's not working though

Did you try changing in node modules builds? I replaced that semicolon to coma, and it worked, but this is only useful when you have a project for local purpose. 🙂

AlexD1979 commented 4 months ago

Is this issue now solved in a new version, does a PR exists?