PDF Express Viewer is crashing on bookmark-more-button-0 click

Hello community!

Bildschirmfoto 2024-08-13 um 00.21.40

I added the bookmarks to the left panel and added a bookmark. When I click on the button with the three dots (data-element=“bookmark-more-button-0”) the viewer crashes with the error
00:30:08.141 TypeError: r is null
m Marko
React 21
index.js:201
promise callback* index.js:184
Webpack 3
react-dom.production.min.js:216:199
React 24
index.js:201
(Async: promise callback)
index.js:184
Webpack 3
( react-dom.production.min.js:216:199)

00:30:08.142 Uncaught TypeError: r is null
m Marko
React 21
index.js:201
promise callback* index.js:184
Webpack 3
BookmarkOutlineContextMenuPopup.js:28:4

I tested it in Firefox v129.0 (64-Bit), Chrome v127.0.6533.100 and Safari v17.5.

My PDF Express Viewer versions:
UI version 8.7.0
Core version 8.7.5
webviewer.min.js 8.7.5
Build Ny80LzIwMjR8MzMxOTBmNGM5YQ==
WebViewer Server false
Full API false

My simple view set up is:

<div id="viewer" class="h-full"></div>
    <script>
        window.addEventListener('DOMContentLoaded', () => {
            PDFJSExpress({
                path: '/pdfjsexpress',
                licenseKey: 'xxxxxxxxxxxxxx',
                initialDoc: "xxxxxxxx",
            }, document.getElementById('viewer'))
                .then(function (instance) {

                    instance.UI.enableElements(['bookmarksPanelButton','bookmarksPanel'])
                })
                .catch(err => {
                    console.error(err);
                });
        });
    </script>

I’m not sure if this is related to the issue, but I get also the following deprecation warning:
‘setCustomModal’ deprecated since version 8.5. Please use UI.addCustomModal instead addCustomModal.js:82:10

Thanks for your help

Hi there,

I believe this error occurs because this feature is not available on Express.


You can read more about the available features here: PDF.js License Pricing for Commercial Viewer | PDF.js Express

Best Regards,
Darian