Incompatible with latest version of Intl
None of the recent versions of the Angular package are compatible with the latest version of the Intl package. Angular requires intl: '>=0.13.0 <0.16.0', the latest version of Intl is 0.16.0. Some other packages I use are requiring intl: ^0.16.0 so version solving is failing. You could argue that there is no reason the other packages need to use intl 0.16.0, but since it is the latest release and I believe it only contains bug fixes and performance improvements it seems like it would be best to upgrade the Angular package to allow it.
-
Dart SDK Version (
dart --version) 2.5.0 -
AngularDart Version (i.e.
4.0.0,5.0.0-alpha+5,MASTER)5.0.0-beta+1throughMASTER -
Whether you are using Windows, macOS, or Linux (if applicable) Linux
-
Whether you are using Chrome, Safari, Firefox, Edge (if applicable) Chrome
-
Any other packages or constraints we should know about I am using modern_charts which requires
intl ^0.16.0
Any updates on this? Is there a workaround available?
No updates yet. The only workaround is to use an intl < 0.16.0.
Sorry I missed this. Considering both packages are developed alongside each other at head, we should be updating the intl dependency every time we publish to support the latest version. The only reason for this upper bound is to prevent someone using an old version of angular in the future from resolving a newer version of intl with breaking changes.
In the meantime, you can override the intl version with dependency_overrides.
# pubspec.yaml
...
dependency_overrides:
intl: ^0.16.0
Thanks for the workaround and the fast response!