Skip to content

build_web_compilers not within constraints #2808

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

Closed
johnniwinther opened this issue Sep 9, 2020 · 9 comments
Closed

build_web_compilers not within constraints #2808

johnniwinther opened this issue Sep 9, 2020 · 9 comments

Comments

@johnniwinther
Copy link
Member

Trying to run my web/index.html from within IntelliJ I get the following error:

dart-sdk\bin\pub.bat global run webdev daemon web:53322 --launch-app=web/index.html
webdev could not run for this project.
The `build_web_compilers` version – 2.11.0 – is not within the allowed constraint – >=2.12.0-dev.1 <3.0.0.

It worked yesterday and I have no clue where the >=2.12.0-dev.1 <3.0.0 constraint comes from, it doesn't match the any constraints in my pubspec.yaml.

@jakemac53 Do you have any idea what has happened ? 2.12.0-dev.1 is still in the future, right?

@kevmoo kevmoo transferred this issue from dart-lang/sdk Sep 9, 2020
@stephan-gruen
Copy link

stephan-gruen commented Sep 10, 2020

The problem is webdev 2.6.0, released on Sep 8, 2020.

You have to manually downgrade webdev to 2.5.9 till the error is fixed.

pub global activate webdev 2.5.9
or
"D:\dart-sdk\dart-sdk 2.10.0-99.0.dev\bin\pub.bat" global activate webdev 2.5.9

worked for me.

@jakemac53
Copy link
Contributor

cc @grouma @annagrin not sure what we want to do here - this version of webdev should have probably been released as a pre-release itself to avoid this type of issue :/

@jakemac53
Copy link
Contributor

Probably the easiest fix would be to release a stable version of build_web_compilers?

@jakemac53
Copy link
Contributor

Going to close this as a dupe of dart-lang/webdev#1099

@HamzaTanveer78
Copy link

I'm using webdev 2.7.6 package and I'm facing the same issue and still, they did not fix this issue.

@jakemac53
Copy link
Contributor

build_web_compilers is now on version 3.2.1 - if you can't update to a compatible build_web_compilers you will need to stay on an older webdev.

@HamzaTanveer78
Copy link

I'm using webdev latest version which is 2.7.6 but how did I know about the compatibility of "build_runner" and "build_web_compilers".

@jakemac53
Copy link
Contributor

Webdev should be emitting a message about the incompatible version. Because it is a globally activated package, it can't actually enforce the dependency directly and has to rely on just emitting its own error.

@vakenbolt
Copy link

Hello all 👋

Run the following command to activate webdev

pub global activate webdev

If you are still seeing the error then the pub cache is more than likely interfering with you updating to the latest webdev. To fix, simply remove your pub cache, like so:

rm -rf ~/.pub-cache/

and re-run pub upgrade and pub global activate webdev

Cheers!

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

5 participants