Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package angular has no versions that match >=5.0.0 <6.0.0 derived from: #2179

Closed
hpoit opened this issue Jul 31, 2019 · 2 comments
Closed

Package angular has no versions that match >=5.0.0 <6.0.0 derived from: #2179

hpoit opened this issue Jul 31, 2019 · 2 comments

Comments

@hpoit
Copy link

hpoit commented Jul 31, 2019

How do I solve this?
image

Related to #912

@johnpryan
Copy link

johnpryan commented Jul 31, 2019

This is an issue with the version of angular_router you are trying to use. If you are using Dart 2 (which includes PubGrub) you can track down the issue without too many hiccups.

For example, with the Dart 2.4.0 SDK, running pub get on this file produces the following message:

Because foo depends on angular_router >=1.0.1 <2.0.0-alpha+16 which requires SDK version
  >=1.24.0 <2.0.0 or >=2.0.0-dev.3.0 <2.0.0, version solving failed.

OK, so there's an issue with angular_router. Let's see if we can relax that version:

name: foo
dependencies:
  angular: ^5.0.0
  angular_forms: ^2.0.0
  angular_router: any
dev_dependencies:
  build_runner: ">=1.6.2 <2.0.0"
  build_test: ^0.10.2
  build_web_compilers: ">=1.2.0 <3.0.0"

Now, running pub get fetches angular_router 2.0.0-alpha+22 without any issues.

@natebosch
Copy link
Member

Looks like you're on a pre-release Dart 2 SDK. I'd recommend upgrading to a more recent one. As @johnpryan points out the newer versions of Pub have an improved version solver which gives better constraint messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants