On SSR it throws window is not defined from node_modules/jspdf/dist/jspdf.min.js:171:8032. When opening another page and then navigating to the page that contains the above code it works, e.g.:
/pdf -> error
/another-page -> /pdf -> works
Additional context
No response
Logs
No response
Btw. I wonder if this project is still maintained? According to #11 custom fonts dont work and pdf size is 8mb instead of 400kb.
Environment
Reproduction
No response
Describe the bug
This works:
This throws an error:
On SSR it throws
window is not defined
fromnode_modules/jspdf/dist/jspdf.min.js:171:8032
. When opening another page and then navigating to the page that contains the above code it works, e.g.:Additional context
No response
Logs
No response
Btw. I wonder if this project is still maintained? According to #11 custom fonts dont work and pdf size is 8mb instead of 400kb.