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
Module not found: Error: Can't resolve 'worker-loader' #12204
Comments
Did you actually install the Does this example work, since it's not clear (to me at least) if you tried using it? Finally, it's unlikely that anyone will be able to help without more context; hence please see https://github.com/mozilla/pdf.js/blob/master/.github/CONTRIBUTING.md (emphasis mine):
|
We're been experiencing the same issue after the latest update! In our production build we get a We've made sure worker-loader is installed. Does anyone have a workaround? |
We found our issue. We were using worker-loader 3.0.1 which is a new major version. Switching to 2.0.0 resolved our problem. |
Attach (recommended) or Link to PDF file here: Not an issue while interacting with a pdf this is a webpack error when compiling
Configuration:
Steps to reproduce the problem:
import PDFJS from 'pdfjs-dist/webpack';
What is the expected behavior? Application compiles correctly
What went wrong? error occurs during build "Module not found: Error: Can't resolve 'worker-loader'"
It's entirely possible this is not how the pdfjs-dist was supposed to be used I ended up using that over just pdfjs since I needed it to work on IE and chrome sets up the worker for me without the dist package
The text was updated successfully, but these errors were encountered: