Uncaught TypeError on Dialog Cards and Course Presentation types
Running Drupal H5P module. Everything was working without issue until today when I started seeing the following errors. Drupal 8.8.5 with version 8.x-1.0-rc17 of the H5P module.
I'm getting uncaught type errors on multiple H5P types in our Drupal site. This was all working without issue, but today started seeing these errors. I see it with the Course Presentation type, and with Dialog Cards. When we try to create a course presentation, the presentation canvas tries to load, it just says "Loading", and the console shows this error:
drag-n-bar.js?ver=1.5.10:26 Uncaught TypeError: H5P.DragNDrop is not a constructor at new DragNBar (drag-n-bar.js?ver=1.5.10:26) at cp-editor.js?ver=1.21.3:518 at Object.llc.getLibraries (h5peditor-library-list-cache.js?qbdo3p:47) at Object.llc.runQue (h5peditor-library-list-cache.js?qbdo3p:78) at Object.success (h5peditor-library-list-cache.js?qbdo3p:59) at c (jquery.js?qbdo3p:2) at Object.fireWith [as resolveWith] (jquery.js?qbdo3p:2) at k (jquery.js?qbdo3p:4) at XMLHttpRequest.r (jquery.js?qbdo3p:4)
For Dialog cards, I'm getting the following error. The Dialog Card title, heading, mode and task description fields load, but the actual Dialog Card functionality does not load (for us to add the images, question and answer. Error in console:
h5peditor-semantic-structure.js?qbdo3p:210 Uncaught TypeError: Cannot read property 'name' of undefined at List.SemanticStructure.self.appendTo (h5peditor-semantic-structure.js?qbdo3p:210) at Object.ns.processSemanticsChunk (h5peditor.js?qbdo3p:475) at ns.Form.processSemantics (h5peditor-form.js?qbdo3p:440) at h5peditor-library-selector.js?qbdo3p:269 at h5peditor.js?qbdo3p:224 at Object.ns.libraryRequested (h5peditor.js?qbdo3p:151) at Object.success (h5peditor.js?qbdo3p:223) at c (jquery.js?qbdo3p:2) at Object.fireWith [as resolveWith] (jquery.js?qbdo3p:2) at k (jquery.js?qbdo3p:4) SemanticStructure.self.appendTo @ h5peditor-semantic-structure.js?qbdo3p:210 ns.processSemanticsChunk @ h5peditor.js?qbdo3p:475 ns.Form.processSemantics @ h5peditor-form.js?qbdo3p:440 (anonymous) @ h5peditor-library-selector.js?qbdo3p:269 (anonymous) @ h5peditor.js?qbdo3p:224 ns.libraryRequested @ h5peditor.js?qbdo3p:151 success @ h5peditor.js?qbdo3p:223 c @ jquery.js?qbdo3p:2 fireWith @ jquery.js?qbdo3p:2 k @ jquery.js?qbdo3p:4 r @ jquery.js?qbdo3p:4 XMLHttpRequest.send (async) send @ jquery.js?qbdo3p:4 ajax @ jquery.js?qbdo3p:4 ns.loadLibrary @ h5peditor.js?qbdo3p:203 ns.LibrarySelector.loadSemantics @ h5peditor-library-selector.js?qbdo3p:238 librarySelectHandler @ h5peditor-library-selector.js?qbdo3p:56 ns.SelectorHub.getSelectedLibrary @ h5peditor-selector-hub.js?qbdo3p:225 loadLibrary @ h5peditor-library-selector.js?qbdo3p:68 call @ h5p-event-dispatcher.js?qbdo3p:209 EventDispatcher.trigger @ h5p-event-dispatcher.js?qbdo3p:240 (anonymous) @ h5peditor-selector-hub.js?qbdo3p:58 (anonymous) @ h5p-hub-client.js?qbdo3p:45 trigger @ h5p-hub-client.js?qbdo3p:45 n.handleUse @ h5p-hub-client.js?qbdo3p:33 n.handleDetailUse @ h5p-hub-client.js?qbdo3p:40 n.handleUse @ h5p-hub-client.js?qbdo3p:40 u @ h5p-hub-client.js?qbdo3p:25 invokeGuardedCallback @ h5p-hub-client.js?qbdo3p:33 invokeGuardedCallbackAndCatchFirstError @ h5p-hub-client.js?qbdo3p:33 h @ h5p-hub-client.js?qbdo3p:25 b @ h5p-hub-client.js?qbdo3p:25 g @ h5p-hub-client.js?qbdo3p:25 m @ h5p-hub-client.js?qbdo3p:25 T @ h5p-hub-client.js?qbdo3p:25 qr @ h5p-hub-client.js?qbdo3p:33 ke @ h5p-hub-client.js?qbdo3p:25 batchedUpdates @ h5p-hub-client.js?qbdo3p:25 J @ h5p-hub-client.js?qbdo3p:25 Me @ h5p-hub-client.js?qbdo3p:25