Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

yaml extension error ( Incorrect type. Expected "string".yaml-schema: pubspec.yaml )

Tags:

yaml

flutter

dart

enter image description here

Recently I created a flutter project and opened the "YAML", getting some error from "YAML" extension. How can I solve this? Is the only solution to uninstall the extension or how to overcome this without uninstalling this extension?

Tried flutter clean, repair, etc. but nothing was helpful.

Errors are:

1 Incorrect type. Expected "string". yaml-schema: pubspec.yaml

2 Property flutter is not allowed. yaml-schema: pubspec.yaml

3 Property cupertino_icons is not allowed. yaml-schema: pubspec.yaml

4 Property flutter_test is not allowed. yaml-schema: pubspec.yaml

5 etc.

Using flutter version is 2.8.1

"YAML" (extension) version v1.5.0

like image 993
Jinto Joseph Avatar asked Feb 26 '26 00:02

Jinto Joseph


1 Answers

I reload the YAML extension and the error gone

like image 139
Mohamed Dernoun Avatar answered Feb 28 '26 15:02

Mohamed Dernoun



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!