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
I searched several forums so far, no luck. I am working on an app using "react-scripts", which is essentially configuration used by Create React App. I am trying to create a pdf from one of my pages and save it to the disk and to circulate this pdf to my users in next step.
Based on what I have read so far, I know that ReactPDF.render() is a Node-only API and seems like I am using web environment (react-scripts and I am using VS visual studio), since after I include the ReactPDF.render() in my code, it gives me an error.
Question
My question is:
Is there any way that I can use ReactPDF.render() on "react-scripts" (Create React App) environment? or should I completely move to another server-side rendering platform like Next.js? Please note that I am not planning to use the download button on the web page.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there!
Background
I searched several forums so far, no luck. I am working on an app using "react-scripts", which is essentially configuration used by Create React App. I am trying to create a pdf from one of my pages and save it to the disk and to circulate this pdf to my users in next step.
Based on what I have read so far, I know that ReactPDF.render() is a Node-only API and seems like I am using web environment (react-scripts and I am using VS visual studio), since after I include the ReactPDF.render() in my code, it gives me an error.
Question
My question is:
Thank you in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions