Failing to use a home-built library


I am compiling a js library that works when imported directly from in a html index file opened in the browser.

When I try to add it to my app in retool, the library seem to load correctly (no errors), but I can't access the functions, nor the variables it exports, in the debug console.

I have tried various options (using a global name, subscribing the exports in globalThis, accessing directly to exported function and values). Every time the functions/variables are said to be undefined.

They don't show in the chrome debug console either.

Any hint on what I might be doing wrong?


Preload custom JavaScript for apps

Hi @Gaetan_Andre,

Where / how are you loading it in your app? Can you provide some details or a screenshot or something?

1 Like