The error is in UXP/common.js
, line 26:
function _internalCreateJSArguments(theArgs, fixedArgCount) {
let jsArgs = [];
let varArgCount = theArgs.length - fixedArgCount;
for (index = 0; index < varArgCount; ++index) { // `let` before `index` is missing
jsArgs.push(theArgs[index + fixedArgCount]);
}
return jsArgs;
}
It’s probably causing little trouble in most cases. But Svelte 5 exports index
function when each
block is used, and a call to core.executeAsModule
breaks it.