Next.js Discord

Discord Forum

How to use html2pdf.js without self not defined error?

Unanswered
Belgian Hare posted this in #help-forum
Open in Discord
Belgian HareOP
I know we can load its import dynamic but that causes hydration error πŸ˜‘

6 Replies

I list all possible issues causing that and solutions
for yoru package next/dynamic is probably the most suited but you probably misused it somehow, it's difficult to use
@James4u include `{ssr: false}` option <@600704648038580235>
Belgian HareOP
tried that, still getting it!
show me the code