You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm getting the following error while trying to use PDFDownloadLink to create a button to download the pdf:
I should also say I am using material ui, and have a material ui table inside the document I am trying to render. Looks like removing this component bypasses the error. react.development.js:1638 Uncaught TypeError: dispatcher.useInsertionEffect is not a function at useInsertionEffect (react.development.js:1638:1) at Insertion (emotion-styled-base.browser.esm.js:45:1) at Jd (react-reconciler.production.min.js:64:1) at ig (react-reconciler.production.min.js:160:1) at hg (react-reconciler.production.min.js:139:1) at bg (react-reconciler.production.min.js:138:1) at Of (react-reconciler.production.min.js:132:1) at react-reconciler.production.min.js:30:1 at unstable_runWithPriority (scheduler.development.js:818:1) at hc (react-reconciler.production.min.js:29:1)Caused by: React ErrorBoundary TypeError: dispatcher.useInsertionEffect is not a function at PDFDownloadLink (http://127.0.0.1:3000/static/js/bundle.js:250444:5)
To Reproduce
I'm using react 18.2/react-dom 18.2 and have the following component rendered in a file <PDFDownloadLink document={<Doc/>} fileName="fileName.pdf"> {({ blob, url, loading, error }) => loading ? 'Loading document...' : 'Download now!' }</PDFDownloadLink>
Expected behavior
A link showing to allow me to download the pdf
Desktop (please complete the following information):
OS: Windows
Browser: Chrome
React-pdf version 4.0.0
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm getting the following error while trying to use PDFDownloadLink to create a button to download the pdf:
I should also say I am using material ui, and have a material ui table inside the document I am trying to render. Looks like removing this component bypasses the error.
react.development.js:1638 Uncaught TypeError: dispatcher.useInsertionEffect is not a function at useInsertionEffect (react.development.js:1638:1) at Insertion (emotion-styled-base.browser.esm.js:45:1) at Jd (react-reconciler.production.min.js:64:1) at ig (react-reconciler.production.min.js:160:1) at hg (react-reconciler.production.min.js:139:1) at bg (react-reconciler.production.min.js:138:1) at Of (react-reconciler.production.min.js:132:1) at react-reconciler.production.min.js:30:1 at unstable_runWithPriority (scheduler.development.js:818:1) at hc (react-reconciler.production.min.js:29:1)Caused by: React ErrorBoundary TypeError: dispatcher.useInsertionEffect is not a function at PDFDownloadLink (http://127.0.0.1:3000/static/js/bundle.js:250444:5)
To Reproduce
I'm using react 18.2/react-dom 18.2 and have the following component rendered in a file
<PDFDownloadLink document={<Doc/>} fileName="fileName.pdf"> {({ blob, url, loading, error }) => loading ? 'Loading document...' : 'Download now!' }</PDFDownloadLink>
Expected behavior
A link showing to allow me to download the pdf
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: