How to manually resolve dependency conflicts?
Let's suppose that the third-party-lib@1.0/awesome-lib-util dependency is causing a conflict. To solve a dependency conflict you can exclude or replace the dependency which is causing it, as follows:
Using the TAG API (Only for a component)
Excluding the conflicting dependency
One way to solve a conflict is by excluding the conflicting dependency. To aim that, use the cubx-dependency-excludes
and the cubx-dependency-exclude
tags as follows:
Replacing the conflicting dependency
Another approach is to replace the conflicting dependency by excluding it as above and including the desired dependency using the cubx-dependencies
and the cubx-dependency
tags as follows:
Using the Dependency API (For all components)
Excluding the conflicting dependency
You could also exclude a dependency using the rootDependencyExcludes
property of the global window.cubx.CRCInit
object as follows:
Replacing the conflicting dependency
Similarly, you could replace the conflicting dependency by adding a new one and excluding an existing one, as shown below:
For more details check The Cubbles Dependency API.
Last updated