0
votes

When I run webdev server in my flutter web project I see this error:

webdev could not run for this project.

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.

Screenshot of the error

dev_dependencies: build_runner: ^1.4.0 build_web_compilers: ^2.0.0 pedantic: ^1.0.0

2
For better answers, please add a Minimal, Reproducible Example.Aimery

2 Answers

1
votes

This is most likely caused by your version of build_daemon not being compatible with your version of build_runner.

Please check your pubspec.yaml file and examine the versions of these two dependencies.

You may need to update the versions (see latest build_runner version and latest build_daemon version. Or perhaps you are encountering this issue which can be fixed by downgrading your build_daemon version.

If you update your question with your dependency versions it will be easier to help.

To update webdev you must reactivate it:

$ pub global activate webdev
# or
$ flutter pub global activate webdev
0
votes

You have juste to add build_daemon: ^1.0.0 in dev_dependencies: of your pubspec.yaml file.

Let us know if it fix your error.