Facet Dropdown example errors with latest instantsearch.js release

The Facet Dropdown tutorial

that uses the dropdown.js from the codesandbox.io reference in the tutorial does not work when using the latest version of InstantSearch.js https://cdn.jsdelivr.net/npm/instantsearch.js@4.30.1.

It does not appear that makewidget is wrapping the refinement widget in a panel. The rootelem as such is null after the following statement:

const rootElem = document
.querySelector(widgetParams.container)
.querySelector(’.ais-Panel’);

The error is

dropdown.js:91 Uncaught TypeError: Cannot read properties of null (reading ‘querySelector’)
at Object.init (dropdown.js:91)
at index.ts:550
at Array.forEach ()
at Object.init (index.ts:541)
at R.value (InstantSearch.ts:489)
at Object.g1M29…/js/search-routing (app.js:285)
at newRequire (app.js:71)
at app.js:120
at app.js:143

Anyone else have this issue? please advise