Resolve dependency - what does it mean to resolve it to an app

Many of my users have really slow internet connectivity, so when using libraries like tabulator (but also many other 3rd party js libraries), the dynamic import of the modules often fail. So I often see issues like this: TypeError: Failed to fetch dynamically imported module: https://cdn.jsdelivr.net/npm/tabulator-tables@6.2.5/dist/js/tabulator_esm.min.js related to this discussion: Tabulator cdn issue - Anvil Q&A - Anvil Community Forum

So when I untick “cdn”, I then need to “Resolve Dependency” to a particular application. What does this mean? I see all of my applications listed in the dropdown at the bottom (except the current app), but what actually happens/what will this do? I only want this to affect the current application where I am setting this. I cannot click “Resolve” until I have selected an application.

that looks like a case of bad UX
trying to show dependency config options with the dependency resolution

For your use case just ignore resolve
click cancel
confirm the changes to effect by opening and closing the edit dependency dialogue
(And be extra sure with a page refresh)

I’ll make a note and we’ll look at improving that


Resolve is typically used when you clone an app that has dependencies
when you clone the app, Anvil won’t know the new app ids in your account to link to the expected dependencies
that’s where resolve comes in
“Hey anvil, you need DepX, use this app please”

2 Likes