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

Not working when it is bundled #137

Closed
rajeshwarpatlolla opened this issue Jun 29, 2016 · 4 comments
Closed

Not working when it is bundled #137

rajeshwarpatlolla opened this issue Jun 29, 2016 · 4 comments
Labels

Comments

@rajeshwarpatlolla
Copy link

This plugin is working fine in the development mode. If i minify the files to serve in the production, then it is not working. And no errors in the logs too.

@sayanee
Copy link
Owner

sayanee commented Jun 30, 2016

I'm so sorry, I'm unable to help with out any error logs or any other details 😞 . What is the browser and any browser console error in the client side?

Since it's working in development mode and not in production, I'm guessing it might be related to the intermediate steps?

@rajeshwarpatlolla
Copy link
Author

There are no errors in the console. And also i am using the gulp-angular seed project for building the app for production environment.

@Wol
Copy link

Wol commented Nov 29, 2016

I'm seeing a similar issue, and this is a PDFJS issue as far as I can tell.

In the PDFJS Worker, there's a line of code which has:

if (pdfjsFilePath) { return pdfjsFilePath.replace(/\.js$/i, '.worker.js'); }

The pdfjsFilePath variable contains the bundled filename e.g. example.com/js/mybundledfile.js, not the original pdf.js. Consequently, it tries searching for `mybundledfile.worker.js, can't find it, and then bails out.

@dennybiasiolli
Copy link
Collaborator

Have you tried to include pdf.combined.js instead of pdf.js?

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

No branches or pull requests

4 participants