3D FlipBook - PDF not loading, Cannot read property WorkerMessageHandler of undefined

g***m@gmail.com
2020-08-24
2020-08-25

I am looking forward to buying the plugin, but currently I can't get this error fixed?

The view is stuck on Please wait... the Application is Loading

HTML: https://gist.github.com/CodeBrauer/9a7360ddd932f2e3086d54cd5b3761ed

JS console errors:

pdf.worker.js:4 Uncaught SyntaxError: Malformed arrow function parameter list
pdf.min.js:1 Uncaught TypeError: Cannot read property 'WorkerMessageHandler' of undefined
    at pdf.min.js:1
    at HTMLScriptElement.n.onload (pdf.min.js:1)
(anonymous) @ pdf.min.js:1
n.onload @ pdf.min.js:1
load (async)
t @ pdf.min.js:1
e @ pdf.min.js:1
i @ pdf.min.js:1
t @ pdf.min.js:1
(anonymous) @ pdf.min.js:1
(anonymous) @ pdf.min.js:1
error (async)
t @ pdf.min.js:1
l @ pdf.min.js:1
Y @ pdf.min.js:1
Pdf @ 3dflipbook.min.js:2
PdfBookPropsBuilder @ 3dflipbook.min.js:5
(anonymous) @ 3dflipbook.min.js:3
(anonymous) @ 3dflipbook.min.js:9
Promise.then (async)
View @ 3dflipbook.min.js:9
BookView @ 3dflipbook.min.js:5
_libs.$.fn.FlipBook @ 3dflipbook.min.js:3
(anonymous) @ 1384:37

Using Chrome 84 on macOS

Replies

a***r@3dflipbook.net
2020-08-24
2020-08-24

could you write a link to this page?

g***m@gmail.com
2020-08-25
2020-08-25

Found the problem after buying your plugin.

3dflipbook.js: Line 2654-2655

Since I moved the assets to another path, the following paths were wrong:

_libs.PDFJS.GlobalWorkerOptions.workerSrc
_libs.PDFJS.cMapUrl
_libs.PDFJS.imageResourcesPath

After fixing it to my correct path, everything works fine.

a***r@3dflipbook.net
2020-08-25
2020-08-25

ok

g***m@gmail.com
2020-08-25
2020-08-25

Can I set the 3 paths elsewhere without modifying the source file?

a***r@3dflipbook.net
2020-08-25
2020-08-25
Log In to leave a comment