I am trying to run a Flutter for web project, which was working just fine, until I ran flutter packages run, after which webdev serve gives the error above. My project is located in a different directory, E:\Flutter_web_try to be specific, which has a pubspec.yaml file.
I have already tried flutter pub pub packages get, reinstalling flutter, deactivating and reactivating webdev but none of those have worked. No new flutter_web project I create is running either, and throws the same error. I have also tried installing a fresh version of Flutter, with the env variables changed, but still the error remained the same.
webdev could not run for this project.
Could not find a file named "pubspec.yaml" in "C:\Users\Sanchit\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\protobuf-0.13.12".```
It should run properly, and tell me the default port at which the project is being served on, which it did before the flutter packages get command.
flutter packages pub global run webdev serve
in your terminal and tell us the output. – RykNo active package webdev. pub finished with exit code 65
– Imperpetual Machinepub global activate webdev
to activate the package. – Ryk