Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to launch Flutter project in a Dart-only workspace

Tags:

flutter

Error Screenshot

I tried to run my flutter code and got this error message. Unable to launch Flutter project in a Dart-only workspace. Please open a folder closer to your Flutter project root or increase the value of the "dart.projectSearchDepth" setting.

like image 818
Chamudi Abeysinghe Avatar asked Nov 07 '25 06:11

Chamudi Abeysinghe


2 Answers

Try This

I went to the 'Extensions' section and searched for Dart and Flutter plugins. Then clicked the 'Switch to Pre-Release Version' and error was gone after running the code again.

like image 178
Chamudi Abeysinghe Avatar answered Nov 09 '25 02:11

Chamudi Abeysinghe


Just restart your VSCode and raun your project again :)

like image 30
yassine menssi Avatar answered Nov 09 '25 03:11

yassine menssi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!