I two almost identical apps and sometimes I pull to my computer and copy a form or a module from one app to the other. Everything works fine with the exception of some MultiSelectDropdowns (from Anvil Extras) that break because in one app they are referred as type: form:dep_i0spdzp3v8wvw:MultiSelectDropDown
and in the other as type: form:dep_d719rff5niregq:MultiSelectDropDown
.
The workaround is easy: after copying the whole form, replace the id on each instance of each MultiSelectDropDown.
In anvil.yaml I can see a difference in how the dependency is defined:
- dep_id: dep_i0spdzp3v8wvw
resolution_hints: {app_id: C6ZZPAPN4YYF5NVJ, name: Anvil Extras, package_name: anvil_extras}
version: {version_tag: v2.7.1}
- dep_id: dep_d719rff5niregq
resolution_hints: {app_id: C6ZZPAPN4YYF5NVJ, name: Anvil Extras, package_name: anvil_extras}
version: {version_tag: v2.7.1}
I would like to understand why it works as it does and if I have done anything wrong that caused this discrepancy.