1
votes

I'm trying to put paper elements in my angularDart app, so I have put in my pubspec.yaml the following dependencies:

dependencies:
    angular: ">=1.0.0 <2.0.0"
    paper_elements: ">=0.5.0 <0.6.0"

And then when I try to pub upgrade I get the following:

Pub: Upgrade Dependencies: Incompatible version constraints on html5lib: - angular 1.0.0 depends on version >=0.10.0 =0.11.0 <0.13.0

I'd really like to use the 1.0.0 (at least) version of angular Dart, however I was wondering if there was a way to satisfy both libs' dependencies. (and how does someone get to know what the correct dependencies' versions are)

Note that I tried doing the same with Polymer and facing the same problem (with a different dependency), so a general way of working around this would help, instead of just giving version numbers.

1
You can/should create a bug report in the Angular.dart repo to update the dependency constraints.Günter Zöchbauer

1 Answers

1
votes

Just use dependency overrides.

dependency_overrides:
  html5lib: 0.12.0

There is no way to satisfy both when their constraints have no common set.
It's at your own risk when one of them doesn't work properly with the specified version.