A package may not list itself as a dependency

I got this strange error while working on flutter recently. It happened when I was trying to install a new package.

My project name is wallpaper

I entered the dependency in pubspec.yaml file.

Turns out that flutter doesn’t allow to have the same name for the project and the dependency. So once I changed the project name and the name in the pubspec.yaml file, it was good to go.

Happy fluttering!



Categories: NodeJs

Tags: , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: