The error happens when https://cdn.jsdelivr.net/npm/htl@0.2.5/dist/htl.min.js is implicitely lazy-loaded via importCell. At the moment d3-require (the one bundled with the separately loaded runtime) tries to pick the module from the top of the d3-require queue (in onload), the queue is empty, because (presumably) the other define was called.