Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QUOTE not defined #2820

Open
sumitkoundilya opened this issue Apr 18, 2023 · 13 comments
Open

QUOTE not defined #2820

sumitkoundilya opened this issue Apr 18, 2023 · 13 comments

Comments

@sumitkoundilya
Copy link

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
Copy link
Author

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

@tusharrana786
Copy link

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

@johnLamberts
Copy link

It's not working though

@philip-firstorder
Copy link

Getting also this error, is it solved?

@johnLamberts
Copy link

johnLamberts commented Nov 4, 2023

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
Copy link

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
Copy link

has vulnerability

@WiharlleyWill
Copy link

has vulnerability

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

@sumitkoundilya
Copy link
Author

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
Copy link

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

@John-Fixit
Copy link

Is this issue now solved in a new version, does a PR exists?
Don't think so, because am having the same error currently

@pedroluanx28
Copy link

same here

@sagarpatelpro
Copy link

sagarpatelpro commented Oct 30, 2024

I have a work around.
Just declare "QUOTE" as global variable.

In my case, I am writing a react application, so I just added it to the index.html file.

In index.html file, before including any other source code script.
<script type="text/javascript"> var QUOTE; </script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants