Open alod2019 opened 2 weeks ago
If we add js
package through the command flutter pub add js
, it takes 0.6.7
version of the plugin with which the said behavior doesn't occur. If we update or manually add specific latest version of the plugin js: 0.7.1
, then it gives the reported log.
Because google_maps_flutter >=2.6.0 depends on google_maps_flutter_web ^0.5.6 which depends on google_maps ^7.1.0, google_maps_flutter >=2.6.0 requires google_maps ^7.1.0.
Because google_maps 7.1.0 depends on js ^0.6.3 and no versions of google_maps match >7.1.0 <8.0.0, google_maps ^7.1.0 requires js ^0.6.3.
Thus, google_maps_flutter >=2.6.0 requires js ^0.6.3.
So, because app_foo_stable depends on both google_maps_flutter ^2.6.0 and js ^0.7.1, version solving failed.
You can try one of the following suggestions to make the pubspec resolve:
* Consider downgrading your constraint on google_maps_flutter: flutter pub add google_maps_flutter:^2.2.8
* Consider downgrading your constraint on js: flutter pub add js:^0.6.7
The underlying issue here is that the google_maps
package that google_maps_flutter_web
depends on hasn't been updated to allow js
0.7.x.
/cc @a14n I'm not sure if that would be a simple change, or there are non-trivial breaking changes in js
.
Steps to reproduce
Expected results
flutter pub get should pass
Actual results
flutter pub get fails with