Pubspec.yaml error A package may not list itself as a dependency.

Опубликовано: 29 Октябрь 2021
на канале: dbestech
8,462
85

You get this error if you try to install a package. It happens if your project name is same as your flutter dependency name. In my case I was installing flutter_bloc and my project name was flutter_bloc too. So I got error

pubspec.yaml: A package may not list itself as a dependency.

32 │ flutter_bloc:
BLoC course
https://www.dbestech.com/tutorials/on...
⏫⏫⏫⏫🔥🔥Bloc advanced code(e-commerce app)
   • Flutter Production Ready E-commerce A...  
🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥Riverpod advanced code🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
   • Upcoming Riverpod E-commerce Clean Ar...  
☞☞☞🥰🥰🥰Single vendor food app
   • Flutter E-commerce App With Backend |...