Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anybody get latest release to work with webpack 4? #311

Closed
runchman opened this issue Nov 29, 2018 · 3 comments
Closed

Anybody get latest release to work with webpack 4? #311

runchman opened this issue Nov 29, 2018 · 3 comments
Labels
duplicate This issue or pull request already exists question Further information is requested

Comments

@runchman
Copy link

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.

@taherbert
Copy link

taherbert commented Nov 29, 2018

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

image

Everything appears to work correctly, though.

@runchman
Copy link
Author

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

@wojtekmaj
Copy link
Owner

Duplicate of #280

@wojtekmaj wojtekmaj marked this as a duplicate of #280 Dec 2, 2018
@wojtekmaj wojtekmaj added duplicate This issue or pull request already exists question Further information is requested labels Dec 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants