Skip to content

Dompurify Error - "Could not load dompurify: ChunkLoadError: Loading chunk 1 failed." #3100

@GunsyX

Description

@GunsyX

Hello, I'm getting an error with dompurify

image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions