Hi Retool Community, I'm running into an issue when trying to load a custom JavaScript library in Retool. I get this error: Encountered error in loading JS library: https://...sdk.umd.js.
The error doesn’t give any details on why it’s failing or how to fix it. The library is UMD-compliant and works fine in a regular browser, so I’m not sure what might be going wrong here.
Has anyone else run into this, or does anyone have ideas on what could be causing it? I’ve attached a screenshot of the console error for reference.
Great question, sorry you are having these issues with a custom library.
Unfortunately we do not have great error reporting for why certain libraries do not load into Retool.
Although your library is UMD-compliant there could be a number of potential causes of the library or it's dependencies not being able to integrate properly with Retool code
If you have more details on the specific library I can check with our engineering team to see if there is a known issue or if I can replicate the issue and see if we can add in integration.
It looks like you redacted the library name, if you need to keep it private you can DM me with more details on the library and I can see if there are alternatives to use or an explanation for why it is failing to load.