next.jsError: fs net tls not installed.
create-react-app:Error: Uncaught ReferenceError: _regeneratorRuntime is not defined
I have used babel-polyfill
I will improve on our side how we bundle our stuff, this is an issue we know about. If you are interested in helping us on this particular issue your welcome.
The idea is to do the babel transpilation trough babel-preset-env and babel-runtime, like the way create-react-app does it internally.
Can't make it work even with import 'babel-polyfill';.
I tried to use the babel-preset-env but haven't been able to run the examples either.
throw new Error('SOI not found in JPEG');
^
Error: SOI not found in JPEG
Maybe I'm missing something?
Also I was trying to update the dependencies and found the 'react-dom/lib/ReactFiberReconciler' got deprecated on react16 beta. You can check more here. So dunno if someone is updating the renderer.js
About this subject, how is supposed to work anyway?
I see two scenarios:
@react-pdf/renderer package. If not, you can always import it dynamically with ssr=false. I know this because I'm building the landing page in next, and was very easy to set it up.Would love to hear more thoughts about this!
New site is built with next, and the library worked without any issue.
Two thing to consider though:
Anywhere I could see the code @diegomura? trying to integrate the PDF viewer into a next.js project but Im having problems.
Crashes when rendering server-side because the PDFViewer is supposed to be used client-side I guess.
Also the styled-components styling approach is crashing (I think desync between server/clientside).
Any workarounds around this? Thanks
Here's the code of the site: https://github.com/react-pdf/site
Most helpful comment
Here's the code of the site: https://github.com/react-pdf/site