What I’m trying to do:
I’m refactoring one of my core dependencies, spliting a few modules and components from it to a new depencency.
What I did was:
- I cloned the first project.
- In the first project I removed all the forms, leaving only modules.
- In the cloned project I removed all the modules, leaving only the visual components.
- I tried adding the first project as a dependency for the cloned project.
This is the error that is showing:
It looks like there was an error loading the dependency 'Core'.
Error: Dependency version mismatch: This app depends on more than one version of the same dependency. ("Core" (OANIXGELFYRDP4VV) depends on the v3.1.0 version of "Core" (C6ZZPAPN4YYF5NVJ->OANIXGELFYRDP4VV), but "Components" (EN4HNLHYQXH6F5SW) depends on the splitBranch version)
You can remove this dependency or remap it to another app.
It seems to be saying that the Core project is depending on itself, but it’s also referencing the anvil-extras project.
depends on the v3.1.0 version of “Core”: The “Core” project does NOT have a v3.1.0, but it depends on the v3.1.0 of anvil-extras. This is what is making me confused.
What I’ve tried and what’s not working:
Messing with the anvil.yaml on both projects to no success.
EDIT: Another info: if I choose the “master” branch when adding the dependency, it does not show the error, but if I choose a tag that points to the same commit as the master branch, this causes the error again.