Cannot depend on dependency before other checks: anvil_extras dependancy issue

I ran into this same error and was able to fix it.

Context:
App1 depended on App2 and App3.
App2 also depended on App3.

Fix:
Collect all the dependency IDs and package_name values from the anvil.yaml from all apps and nested dependencies.

Be sure to use the value of the dep_id field and not the app_id.

The dep_id’s all begin with dep_. The package_name field is located in the resolution_hints section.

Use those values in your config.yaml or the --dep-id command-line arguments.

Example:

dependencies:
- dep_id: dep_abcd1234
  version: {dev: false}
  resolution_hints: {app_id: WXYZ4321, name: My App Dependency, package_name: my_dependency}

Config YAML

dep-id:
  "dep_abcd1234": "my_dependency" 

Command-line:
$ anvil-app-server --dep-id dep_abcd1234=my_dependency

2 Likes