Closed philipmjohnson closed 1 year ago
Hi @philipmjohnson, it seems this is an old Flutter issue which has just resurfaced, see this comment.
I'd try the following:
Create a pubspec.yaml in /Users/philipjohnson/github/geogardenclub/ggc_app/.dart_tool/flutter_gen/pubspec.yaml
with these contents:
name: test
description: A new Flutter application.
version: 1.0.0
dependencies:
dev_dependencies:
Then try:
flutter pub get
flutter gen-l10n
monarch run
If that doesn't work, try monarch run --delete-conflicting-outputs
instead of monarch run
.
You can also try moving your flutter_gen
under dev_dependencies
.
If that doesn't work, then I'd need more details to reproduce. Your pubspec.yaml would be helpful and your flutter doctor
output. You could also run monarch run -v
which should print out a log file which may be helpful.
My gut tells me this is a flutter_gen issue though.
Wow, I am grateful for the quick and helpful response! Makes me feel like I chose the right storybook app for Flutter.
I decided to start by moving flutter_gen to dev_dependencies and seeing what happens, since creating the pubspec.yml file manually would need to be redone each time the system is downloaded and built from GitHub. Turns out that this seems to have fixed the problem.
I am excited to move on and get to know Monarch. Thanks again.
I am trying to set up a new project following the installation instructions. Everything works OK until I get to
monarch run
. It appears to start up, but within a few seconds I get an error:Once I get this error, if I run
monarch run
again, I get the error even before the app comes up:I can do the following to fix the bad state error:
And then when I run
monarch run
, the app will come up again, but it will get into the bad state error again within a few seconds.What can I do to eliminate this error?