React-pdf: The PDF won't display in a create-react-app

Created on 25 May 2018  路  2Comments  路  Source: wojtekmaj/react-pdf

Hello,

I can't make it work in a fresh create-react-app project. Regardless of what I tried, the console log no error but the screen stays blank. Also, the div react-pdf__Document is always empty. It is the same problem than here : https://github.com/diegomura/react-pdf/issues/236
Do you have any idea why ?

capture d ecran 2018-05-25 a 18 46 23

question

Most helpful comment

It doesn't seem like you are rendering any Page components. So your document is loaded successfully, but its pages are not actually rendered. I'd suggest to read up here. It will probably solve your problem.

All 2 comments

It doesn't seem like you are rendering any Page components. So your document is loaded successfully, but its pages are not actually rendered. I'd suggest to read up here. It will probably solve your problem.

Thanks for your input. I managed to solved my problems thanks to it!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nnnikolay picture nnnikolay  路  4Comments

Crackiii picture Crackiii  路  3Comments

Solitaryo picture Solitaryo  路  5Comments

douglasrcjames picture douglasrcjames  路  4Comments

saadq picture saadq  路  3Comments