exceljs / exceljs/exceljs

Chrome extension - Uncaught EvalError

Open
#2,345 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
15.5k
Forks
2k
PR merge metrics
No merged PRs in 30d

Description

I am working on a chrome extension that scrapes food vendor information from a food delivery platform, which then saves the data into an Excel file using exceljs. Importing exceljs.min.js, however returns this error:

```
Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' 'wasm-unsafe-eval' 'inline-speculation-rules'
```

Stack Trace points towards this line for ```"regenerator-runtime/runtime": 492``` causing the error:
```
exceljs.min.js:43194 (anonymous function)
```

```
try {
regeneratorRuntime = i
} catch (t) {
// Source of error
Function("r", "regeneratorRuntime = r")(i)
}
```

Any solution to prevent triggering Uncaught EvalError for this problem?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.