Flutterando / slidy

CLI package manager and template for Flutter
https://pub.dev/packages/slidy
Apache License 2.0
806 stars 101 forks source link

[erro] slidy start #244

Closed alvaroreis closed 3 years ago

alvaroreis commented 3 years ago

Unhandled exception: NoSuchMethodError: Class 'String' has no instance method '[]='. Receiver: "flutter clean" Tried calling: []=("get", Instance of 'Line')

0 Object.noSuchMethod (dart:core-patch/object_patch.dart:54:5)

1 PubspecServiceImpl.loadYaml (package:slidy/src/core/services/pubspec_service_impl.dart:45:40)

#2 PubspecServiceImpl.add (package:slidy/src/core/services/pubspec_service_impl.dart:100:19) #3 PackageInstalationRepositoryImpl.install (package:slidy/src/modules/package_instalation/infra/repositories/package_instalation_repository.dart:29:22) #4 Install.call (package:slidy/src/modules/package_instalation/domain/usecases/install.dart:15:12) #5 StartCommand.run (file:///C:/Users/User/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/slidy-3.0.2/bin/commands/start_command.dart:127:14) #6 CommandRunner.runCommand (package:args/command_runner.dart:196:13)
Ascenio commented 3 years ago

Você pode mandar uma foto da sua estrutura de pastas, a partir de qual pasta você rodou o comando e o seu pubspec.yaml?

JacquesMarques commented 3 years ago

@alvaroreis you are using flutter_launcher_icons package? If yes and you put flutter_icons: declaration on you pubspack,yaml file, this is the cause of your error, remove the flutter_icons: declaration to another file like flutter_launcher_icons.yaml, and the error is fixed.

alvaroreis commented 3 years ago

@alvaroreis you are using flutter_launcher_icons package? If yes and you put flutter_icons: declaration on you pubspack,yaml file, this is the cause of your error, remove the flutter_icons: declaration to another file like flutter_launcher_icons.yaml, and the error is fixed.

Obrigado, resolveu meu problema.