Uncaught TypeError: Cannot read property 'init' of undefined at HTMLEle

Using Vaadin 14.2.3 and changed from version 2.0.0 to 3.0.0 and this happens after login (not even trying to show a PDF):

Uncaught TypeError: Cannot read property ‘init’ of undefined
at HTMLElement.eval (eval at Zt (client-E01C61E0794495BFEB8FD33406D82B8B.cache.js:1011), :3:62)
at Object.eval (eval at Zt (client-E01C61E0794495BFEB8FD33406D82B8B.cache.js:1011), :3:120)
at Zt (client-E01C61E0794495BFEB8FD33406D82B8B.cache.js:1011)
at Yt (client-E01C61E0794495BFEB8FD33406D82B8B.cache.js:968)
at Wt (client-E01C61E0794495BFEB8FD33406D82B8B.cache.js:580)
at Cr (client-E01C61E0794495BFEB8FD33406D82B8B.cache.js:504)
at $r._r [as cb]
(client-E01C61E0794495BFEB8FD33406D82B8B.cache.js:1020)
at uB (client-E01C61E0794495BFEB8FD33406D82B8B.cache.js:936)
at Er (client-E01C61E0794495BFEB8FD33406D82B8B.cache.js:1015)
at Ur.Vr [as D]
(client-E01C61E0794495BFEB8FD33406D82B8B.cache.js:1020)
at mk (client-E01C61E0794495BFEB8FD33406D82B8B.cache.js:417)
at wr (client-E01C61E0794495BFEB8FD33406D82B8B.cache.js:1016)
at xr (client-E01C61E0794495BFEB8FD33406D82B8B.cache.js:997)
at Zi (client-E01C61E0794495BFEB8FD33406D82B8B.cache.js:700)
at To (client-E01C61E0794495BFEB8FD33406D82B8B.cache.js:754)
at Wo (client-E01C61E0794495BFEB8FD33406D82B8B.cache.js:637)
at $o._o [as D]
(client-E01C61E0794495BFEB8FD33406D82B8B.cache.js:1020)
at Ob (client-E01C61E0794495BFEB8FD33406D82B8B.cache.js:967)
at Hb (client-E01C61E0794495BFEB8FD33406D82B8B.cache.js:689)
at Rb.Sb [as C]
(client-E01C61E0794495BFEB8FD33406D82B8B.cache.js:1020)
at Mb (client-E01C61E0794495BFEB8FD33406D82B8B.cache.js:204)
at sb (client-E01C61E0794495BFEB8FD33406D82B8B.cache.js:432)
at vb (client-E01C61E0794495BFEB8FD33406D82B8B.cache.js:882)
at client-E01C61E0794495BFEB8FD33406D82B8B.cache.js:622
at d (client-E01C61E0794495BFEB8FD33406D82B8B.cache.js:711)

I cannot reproduce the issue. I looks like this is not a problem with the pdf-browser component but with your build. Try removing the node_modules directory and building the app again. I cannot think of any other solution with what you shared.

Removed the node_modules directory. No joy, same results.

Unfortunately, there’s not much I can do without seeing the relevant code.

I put PdfBrowserViewer.java directly into our project. Compiles fine, however, I have to comment out @JsModule(“@lrnwebcomponents/pdf-browser-viewer/pdf-browser-viewer.js”) to prevent the above error.

Do you have any suggestions how to proceed?

I can take a look if you are able to provide a minimal runnable project to reproduce the issue.

Not necessary. Went with the solution provided by Dennis Reichenberg.