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

Channel:
Subscribers:
135,000
Published on ● Video Link: https://www.youtube.com/watch?v=fr05X33GVhE



Duration: 1:00
3,353 views
49


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:




Other Videos By dbestech


2021-11-15Flutter Bottom Navigation Bar Background Color Not Working (Solved) | BottomNavigationBarType.fixed
2021-11-15Flutter Reusable Custom Widgets | Reuse Buttons & Components
2021-11-13Flutter Dart Double Dots ..| Dart Operators | Cascading
2021-11-13Flutter TabBar and TabBarView Without Scaffold & AppBar | Custom Indicator & TabBarController
2021-11-10Flutter Provider and ChangeNotifier With Listener for State Management | Example
2021-11-07Laravel 8 | Multi Language Websites With Laravel Route Groups |The Easiest & Efficient Way
2021-11-05Flutter setState() and Callback Function(with parameters) for Passing Data Between Classes
2021-11-03Flutter Firebase App Setup Tutorial & Getx Authentication | Using Email & Password | Part 2
2021-11-01Flutter Firebase App | Step by Step for Beginners to Advanced | Login & Sign up | Auth Page - Part 1
2021-10-30Simplest Explanation Flutter BLoc Pattern | States and Events | mapEventToState
2021-10-29Pubspec.yaml error A package may not list itself as a dependency.
2021-10-23Flutter Multiple Selection | Filter ListView Category Using Map Where() & Contain() | Getx
2021-10-21Flutter Local Notifications & Sqflite Explained Step by Step | Part 3
2021-10-15Flutter Payment App | Laravel Backend Admin Panel | GetX Rest API | Getx Obs and Obx
2021-10-06Must Know Dart List and Map for Flutter App Dev | forEach() map() toList()
2021-10-02Flutter Payment App | App Development Tutorial for Beginners for iOS and Android from Scratch
2021-09-23Flutter App Using Sqlite & Sqflite CRUD With Local Scheduled Notifications | GetX Listview | Part 2
2021-09-19Flutter Dynamic Theme Change | Local Push Notification | Get Storage | Beginners App iOS | Android
2021-09-06Flutter Video Player Tutorial With Controls Fullscreen | Aspect Ratio ListView | Url Example
2021-08-27Flutter App Development Tutorial for Beginners iOS | Android | Complex UI | Training App GetX
2021-08-19Complete Flutter Web App | A Responsive Website Tutorial for Beginners



Tags:
flutter error
flutter pubspec.yaml error
flutter pubspec.yaml dependencies
flutter tutorial
dart
flutter