Cannot read property 'name' of undefined (core 7.3.2, CoreControls.js:697)

PDF.js Express Version
webviewer-ui.min.js:221

  1. Build: “My8yMi8yMDIxfDQwM2IyMDFjNg==”
  2. Core version: “7.3.2”
  3. Full API: false
  4. UI version: “7.3.0”
  5. WebViewer Server: false

Detailed description of issue
Hi guys, I have been evaluationg PDFTron Webviewer, and your licensing colleagues suggested I use PDF.js Express. I have replaced by /webviewer/lib/ folders, and it works well in DEV. But when I push it to PROD it does not work… It used to work when using PDFTron (60Mb folders), but now that I use PDF.js, I get this in PROD (it works in DEV)…

Uncaught (in promise) TypeError: Cannot read property ‘name’ of undefined
at x (CoreControls.js:697)
at pa (CoreControls.js:701)
at h. (CoreControls.js:262)
at r (CoreControls.js:194)
at Object.next (CoreControls.js:192)
at y (CoreControls.js:192)

Happy to hop on a screen-sharing session if you can do that.

Expected behaviour
I just expected my PDF file to load. It doesn’t.
It used to work with PDFTron both in DEV and in PROD.
Right now it works with PDF.js Express, but only in DEV, not in PROD.

Does your issue happen with every document, or just one?
Any document.

Link to document
{Provide a link to the document in question if possible}

Code snippet
The code works well in DEV, and it is pretty basic.
Uncaught (in promise) TypeError: Cannot read property ‘name’ of undefined
at x (CoreControls.js:697)
at pa (CoreControls.js:701)
at h. (CoreControls.js:262)
at r (CoreControls.js:194)
at Object.next (CoreControls.js:192)
at y (CoreControls.js:192)

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

Hi there! (sorry for the delay, its been a crazy week and it was a long weekend in Canada - we usually try to respond much faster)

This could potentially happen if you are mixing and matching PDFTron assets with Express assets - please make sure you are completely removing PDFTron assets from your project. I recommend completing deleting your /webviewer/lib/ folder (wherever WebViewer assets are stored) and re-copying the files for express.

If this doesn’t work, can you please send me a link to a website where this is reproducible? This will help me see the issue.

Thanks!
Logan

Thanks! Not sure how it got resolved but it did. Maybe a cache issue. Cheers!