jonataslaw / get_cli

Official Getx CLI
Apache License 2.0
595 stars 174 forks source link

Error in creating page using command #163

Closed arjundevlucid closed 2 years ago

arjundevlucid commented 2 years ago

Flutter :2.10.2 get_cli : 1.7.1

Unhandled exception:
Bad state: expecting only one entry for dependency
#0      new DependencyReference.fromJson (package:pubspec/src/dependency.dart:19:9)
#1      new PubSpec.fromJson.<anonymous closure> (package:pubspec/src/pubspec.dart:103:68)
#2      JsonParser.mapValues.<anonymous closure> (package:pubspec/src/json_utils.dart:113:45)
#3      MapMixin.forEach (dart:collection/maps.dart:123:13)
#4      JsonParser.mapValues (package:pubspec/src/json_utils.dart:112:7)
#5      new PubSpec.fromJson (package:pubspec/src/pubspec.dart:103:15)
#6      new PubSpec.fromYamlString (package:pubspec/src/pubspec.dart:113:15)
#7      PubspecUtils.pubSpec (package:get_cli/common/utils/pubspec/pubspec_utils.dart:21:15)
#8      PubspecUtils.containsPackage (package:get_cli/common/utils/pubspec/pubspec_utils.dart:119:58)
#9      PubspecUtils.isServerProject (package:get_cli/common/utils/pubspec/pubspec_utils.dart:128:12)
#10     CreatePageCommand._writeFiles (package:get_cli/commands/impl/create/page/page.dart:81:33)
#11     CreatePageCommand.checkForAlreadyExists (package:get_cli/commands/impl/create/page/page.dart:76:7)
#12     CreatePageCommand.execute (package:get_cli/commands/impl/create/page/page.dart:37:5)
#13     main (file:///C:/Users/shree/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/get_cli-1.7.1/bin/get.dart:18:23)
#14     _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:285:32)
#15     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:187:12)