Could not find an option named "web-server-debug-protocol" when running a Flutter project through VSCode

2.6k Views Asked by At

I am using VSCode ad my Flutter development IDE. It worked well until this afternoon. When I ran the project, Could not find an option named "web-server-debug-protocol"showed up. I have no idea what goes wrong. I googled "web-server-debug-protocol" and only found two links showed that it exists in the flutter_command.dart. Did anyone meet the similar problem? Any suggestions about that? Thanks!

enter image description here

UPDATE I solved this issue by upgrading my Flutter.

4

There are 4 best solutions below

1
On

echo.

I reinstalled Flutter extension in VS Code and it worked properly.

good flutter life!

0
On

I had the same problem, I just upgraded Flutter and it works.

0
On

For me restarting the VS Code did the Job.

0
On

Just restart VS code. It often happens when you switch between Flutter channels, but restart should fix it...