Thanks for the repo. I debugged a bit and found two issues:
- LoadScriptAsync is not properly capturing the error message (
exception
will be undefined in this case) and thus calls thereject
with an undefined value. This causes the error message reported above instead of the real error since the error handler is trying to access themessage
property of theerror
argument which is undefined. I have a local fix for this. - LoadScript is required by the Draco glTF extension to load the Draco WebAssembly and scripts, but the implementation of LoadScript does not handle a node.js environment. I’m not sure what the best way is to handle this one. @RaananW/@sebavan Any thoughts?