react-pdf icon indicating copy to clipboard operation
react-pdf copied to clipboard

Anybody get latest release to work with webpack 4?

Open runchman opened this issue 8 years ago • 3 comments

Trying to get latest release to build with my React app, which I created with create-react-app but have since ejected. I get the following errors:

image

My versions: react-pdf 4.0.0 pdfjs-dist 2.0.943 webpack 4.26.1

I import as follows: image

Any help would be greatly appreciated.

runchman avatar Nov 29 '18 16:11 runchman

Using un-ejected CRA2, I get the same warnings. My import looks as follows:

image

Everything appears to work correctly, though.

taherbert avatar Nov 29 '18 18:11 taherbert

Tried your import, still no joy for me. Thanks though!

runchman avatar Nov 29 '18 19:11 runchman

Duplicate of #280

wojtekmaj avatar Dec 02 '18 19:12 wojtekmaj