2
votes

when I try to "serve" my flutter web app I'm getting this error:

This version of webdev does not support the build_daemon protocol used by your version of build_runner. A newer version of webdev is available which supports your version of the build_daemon. Please update.

how do I update webdev ? "pub global" seems to offer only "activate"/ "deactivate" and "pub upgrade" is only looking into the pubspec.yaml file

any idea?

5

5 Answers

4
votes

Oh... I just run "pub global deactivate " and then "pub global activate ". Anyway I opened an issue on github suggesting to add the feature "update". I hope this easy solution might help you, feel free to follow up the issue.

1
votes

Adding build_daemon: ^1.0.0 in dev_dependencies: of .yaml file fix my error

0
votes

I got the same problem now when I followed this tutorial https://medium.com/flutter-community/flutter-create-and-deploy-a-website-from-scratch-4a026ebd6c, but I didn't get pass the error by running flutter pub global activate.

0
votes

I had to use the following command to update webdev

flutter pub global run webdev deactivate

and then

flutter pub global run webdev activate

0
votes

Here is what i configured in my computer

  • run: pub get
  • run: webdev serve
dev_dependencies:
  build_daemon: ^1.0.0
  build_runner: ^1.4.0
  build_web_compilers: ^2.0.0

Wish this will fix your issues.