App dependency not found

Dear Friends:

On application launch, I’m receiving this error:

  • App dependency not found

From a similar forum post, I found this resource.

I may know what led to this issue, and hopefully the community can confirm (or refute) it.

So I have App_A and DataFor_App_A (two Apps), where the latter App stores Data Tables and functions that the former App uses.

I paused development of App_A (several days ago), so that I could flesh-out DataFor_App_A, on which it depends. But when I returned to App_A today, I received the above error, despite leaving it in a working state.

I believe the problem stems from the fact that DataFor_App_A is actually a clone of a predecessor (now deleted), and I need to manually update the dependency that App_A is referencing (which I haven’t done).

  1. Does this scenario make sense? (Just so I better understand).

  2. In App_A, I think I need to update app_id in this anvil.yaml stanza to reflect the clone’s app_id:

dependencies:
- app_id: XXXXXXXXXXXXXXXX
  version: {dev: true}
  1. If everything written so far is correct, (a) Where do I formally find the app_id for the new DataFor_App_A (I suspect it’s embedded as the 16-character alphanum in the URL); and (b) Via the IDE, where can one update the YAML dependency in App_A? (For example, if they were strictly using the IDE).

Via the CLI, I think the basic steps are:

  1. git pull
  2. vi(1) ./anvil.yaml # Update value for app_id.
  3. git push

But before doing anything, is the above scenario feasible? I want to consult the community before doing anything. :slight_smile: Thank you.

(Sorry for the long question).

I pressed ahead and performed the CLI steps mentioned, and things are working again (thank Goodness). I wonder, though, about users needing to perform this strictly via the IDE.

I’m not sure where the difficulty was in doing this through the IDE. You remove the outdated dependency, and add the new one, making sure they both are using the same package name.

2 Likes

Thank you. I just don’t know where to find it in the IDE. I’m using the Beta version. Hmm, I didn’t think to check Classic.

In the Beta IDE, use the gear icon on the left, that takes you to the general settings area. Dependencies is one of the sections there.

1 Like

Ah, I see it now. I was scrolling up/down the General pane and failed to “see” anything below that tab (as I did in the Classic IDE). Thanks for drawing my attention to it.

1 Like

All described in the docs Anvil Docs | Depending On Other Apps

2 Likes

Ah, excellent. Thank you.