Chrome extension - Uncaught EvalError
- 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.