jeroen-meijer/pubspec-assist

Bug Report: Cannot read property 'type' of null

MellisBill opened this issue ยท 4 comments

Bug Report: Cannot read property 'type' of null

Yeah happens to me too.

This happens when some of your dependencies don't have a version number.

Try to add a version number to them and try again. It worked for me

Thanks for creating this issue. Unfortunately, not enough information is provided to be able to research or fix these issues. Could you provide more details on when this happens, or post an example pubspec.yaml so I can reproduce this? ๐Ÿ‘€

Thanks! ๐Ÿ˜„

It seems that this error has been fixed.

It happened to men when I had a dependency with no version number.

Thanks for the quick reply! I just found this issue by a fellow community member who was running into the same issue. It turns out this only happens when you use the legacy sorting system, which has since then been deprecated (but can be enabled in settings).

Thanks again, and glad to hear it's solved! ๐ŸŽ‰