Dompurify Error - "Could not load dompurify: ChunkLoadError: Loading chunk 1 failed."
See original GitHub issueHello, I’m getting an error with dompurify
const options = {
orientation: "landscape",
unit: "in",
format: [3.93, 0.98]
}
const doc = new jsPDF({options});
doc.html(renderToString(printLayout), {
callback: () => {
doc.save();
}
})
printLayout
is a variable with JSX inside.
renderToString
returns a HTML String from printLayout
.
How do I get rid of the error? Thanks.
Issue Analytics
- State:
- Created 3 years ago
- Comments:12
Top Results From Across the Web
"Could not load dompurify: ChunkLoadError: Loading chunk 1 ...
Hello, I'm getting an error with dompurify const options = { orientation: "landscape", unit: "in", format: [3.93, 0.98] } const doc = new ......
Read more >How to Solve the Chunk Load Error in JavaScript - Rollbar
Whenever there's an error observed in dynamically fetching helper JavaScript files known as Chunks, a ChunkLoad Error is thrown.
Read more >Issue with jsPDF: Uncaught (in Promise) Error: Could not load ...
I think this is a problem with "sPDF will then dynamically load them (ie: dompurify and html2canvas) when required (using the respective module ......
Read more >dompurify - npm
DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all ...
Read more >React — Loading Chunk Failed Error | by Tushar Mohan
Since an exception was recorded when the chunk failed to load, we will try loading the piece that failed. For that, let us...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@GunsyX , try this and let us know if it works
install dompurify and html2canvas with npm
Then use this code instead
Error Gone but not getting CSS from External File, while Inline CSS Works! any suggestion man?