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

pdfjs.worker not found when using with webpack #12

Open
AdrianLsk opened this issue May 11, 2018 · 3 comments
Open

pdfjs.worker not found when using with webpack #12

AdrianLsk opened this issue May 11, 2018 · 3 comments

Comments

@AdrianLsk
Copy link

Hi, I am trying to use your library with webpack, but unfortunately I am getting an error due to webpack not able to find a path to pdf.worker.

0.dll.js:1 Uncaught ReferenceError: webpackJsonp_name_ is not defined
    at 0.dll.js:1

The source.js looks like


/***/ "./node_modules/pdfjs-dist/build/pdf.worker.js":
/***/ (function(module, exports, __webpack_require__) {

eval("/* WEBPACK VAR INJECTION */ ...
/***/ })

})

I found this thread, but don't have enough experience to fix it myself.

Any idea how to make it work?

@mapreal19
Copy link
Contributor

@agentcooper
Copy link
Owner

@AdrianLsk I've just published 1.0.0, could you take a look if it works now?

@sudarshanshenoy
Copy link

@AdrianLsk I was facing a issue when i used webpack4. I had to update the pdf js. take a look at this #42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants