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

flutter_web #33651

Closed
nxSin opened this issue May 31, 2019 · 16 comments
Closed

flutter_web #33651

nxSin opened this issue May 31, 2019 · 16 comments
Labels
platform-web Web applications specifically

Comments

@nxSin
Copy link

nxSin commented May 31, 2019

VSCode , Use F5 run project , I get 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.

but , I use webdev serve in terminal , can run project

config:

image

@timsneath
Copy link
Contributor

What version of webdev do you have installed? (Run webdev --version from a command line)

@timsneath timsneath added platform-web Web applications specifically waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds labels May 31, 2019
@robotgray
Copy link

robotgray commented Jun 1, 2019

This is also happening for me. I created a new web project from the VS Code plugin v3.1.

webdev version 2.0.4

@robotgray
Copy link

Fixed temporarily by bumping down the build_daemon from 1.0.0 to 0.6.1

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

@zTrix
Copy link

zTrix commented Jun 2, 2019

@gray419 upgrade webdev to 2.0.6 seems to be another solution for this issue.

@nxSin
Copy link
Author

nxSin commented Jun 3, 2019

@gray419 thanks ,it work for me. maybe have another better solution for this issue. @zTrix @timsneath when I Run webdev --version from a command line, out 2.0.6 ,

xindeMacBook-Pro:engine xin$ webdev --version
2.0.6

but I don't know how to check VSCode's webdev version

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jun 3, 2019
@DanTup
Copy link
Contributor

DanTup commented Jun 5, 2019

VS Code uses the same webdev version that is activated to use from the command line. Are you still seeing issues on the latest version of everything?

@nxSin
Copy link
Author

nxSin commented Jun 6, 2019

VS Code uses the same webdev version that is activated to use from the command line. Are you still seeing issues on the latest version of everything?

Thanks. One days ago, when I run debug in VS Code , it show notification window to hint I update webdev version , I clicked the update button .And then , the problem disappears

@DanTup
Copy link
Contributor

DanTup commented Jun 6, 2019

Great, glad it's sorted. We only check for a package update if it's been at least 20 hours since the last check, so it's possible that after an update you might not see the prompt for a little while. You can always force it by using flutter packages global activate webdev though.

I'll close this since it seems fixed, but if anyone is still having issues please do shout!

@DanTup DanTup closed this as completed Jun 6, 2019
@anoop-b
Copy link
Contributor

anoop-b commented Jun 10, 2019

After running flutter packages global activate webdev followed by webdev --version still shows up as 2.0.5, running pub global activate webdev fixed the issue for me. Now webbed --version is 2.0.7

@kevmoo
Copy link
Contributor

kevmoo commented Jun 10, 2019

It's likely because flutter has an older Dart SDK than the Dart SDK you have installed. You'll get older dependencies...

@aryzhov
Copy link
Contributor

aryzhov commented Jun 17, 2019

I had the same issue. When running pub global activate webdev I was getting Activated webdev 2.1.0., but webdev --version was still returning 2.0.5. What solved the problem is running flutter packages global activate webdev. Now webdev --version returns 2.1.0 and webdev build works again.

@SarahAbou
Copy link

SarahAbou commented Jul 26, 2019

flutter packages global activate webdev fixed my issue .. thank youuu

@Blasanka
Copy link

Blasanka commented Jul 31, 2019

I had to add build_daemon: 1.0.0 to dev_dependencies.

@tranqy
Copy link

tranqy commented Sep 3, 2019

I had to add build_daemon: 1.0.0 to dev_dependencies.

Worked to get a stagehand sample project running.

@neon97
Copy link

neon97 commented Sep 24, 2019

Agree !! with @kevmoo Dart update works for this issue try updating the Dart SDK and then flutter upgrade on terminal and then run flutter pub global activate webdev and goes on with the same procedure !! Thanks @kevmoo !!

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform-web Web applications specifically
Projects
None yet
Development

No branches or pull requests