You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have built pdf.js in accordance with these instructions. The code generated includes this line:
var worker = new Worker(workerSrc);
Chrome is complaining that it cannot find the file GET http://localhost:8100/build/main.worker.js.
Now then, I have not come across web workers before, so I'm not sure what this error means or where to find, or build, this file. I notice that the build process also yields a file called pdf.worker.js, and I have strong suspicions that this might be the file it's after, although renaming it to main.worker.js had no effect.
I'm sure this is a very simple problem if you are in the know. What am I missing?
Ok, after a little more digging, I found this which pertains more to my situation. I am using Ionic 2 and I don't know how to generate the file referenced in this line:
You need to specify PDFJS.workerSrc or PDFJS.workerPort. Using 'pdfjs-dist/webpack' with provide workerPort automatically (see #8107). Closing as answered.
I have built
pdf.js
in accordance with these instructions. The code generated includes this line:Chrome is complaining that it cannot find the file
GET http://localhost:8100/build/main.worker.js
.Now then, I have not come across web workers before, so I'm not sure what this error means or where to find, or build, this file. I notice that the build process also yields a file called
pdf.worker.js
, and I have strong suspicions that this might be the file it's after, although renaming it tomain.worker.js
had no effect.I'm sure this is a very simple problem if you are in the know. What am I missing?
Ok, after a little more digging, I found this which pertains more to my situation. I am using Ionic 2 and I don't know how to generate the file referenced in this line:
Can anyone illuminate my dark mind?
The text was updated successfully, but these errors were encountered: