I have a very weird problem. I have some dependencies that previous to adding a new dependency work well, but as soon as I add a new one (in this specific case async_await
) I get an Incompatible version constraints on analyzer
error when using pub get
. The curious thing is: async_await
is NOT an incompatible constraint!
Pub get failed, [1] Resolving dependencies... Incompatible version
constraints on analyzer:
- angular 1.0.0 depends on version >=0.15.0 <0.19.0
- di 3.3.1 depends on version >=0.15.0 <0.22.0
- redstone_mapper 0.1.1 depends on version >=0.13.0 <0.14.0
Why doesn't this error show when I remove async_await
(this same thing happened with another import) if the constraints should still fail?
Update
Running pub upgrade
reveals another problem
Resolving dependencies...
Incompatible version constraints on analyzer:
- angular 1.0.0 depends on version >=0.15.0 <0.19.0
- async_await 0.0.0 depends on version >=0.22.4 <0.23.0
Pubspec.yaml
name: aristadart
description: A sample web application
dependencies:
angular: 1.0.0
browser: any
di: any
fp: any
http: any
mongo_dart: any
redstone: any
redstone_mapper: any
redstone_mapper_mongo: any
shelf_static: any
transformers:
- redstone_mapper
- angular:
html_files:
- lib/components/login/login.html
- lib/components/login/nuevo_usuario.html
- lib/components/home/home.html
- lib/components/evento/evento.html
- lib/components/vista/vista.html
pubspec.yaml
– Lodestonedependency_overrides
from my answer and it worked. Do you still get an error? – Lodestone