Skip to content

Troubleshooting

Ensure pubspec.yaml contains Flutter SDK dependencies and you are in the project root (or pass --path).

Default behavior skips existing files. Use --overwrite or rely on sync for managed regions.

Terminal window
dart run stackchain doctor --skip-analyze
# or temporarily
strict_quality: false

Fix analyze issues, then re-enable strict mode for production.

Set them explicitly, or omit them while state_management: getx so smart defaults apply.

Run build_runner after pub get:

Terminal window
dart run build_runner build --delete-conflicting-outputs

Re-run with --keep-old from a clean commit, or restore from VCS and migrate again with --keep-old.

Migrate left ProviderScope / old state imports

Section titled “Migrate left ProviderScope / old state imports”

Upgrade to 1.1.3+. migrate refreshes bootstrap.dart and app shell for the target stack. Re-run:

Terminal window
dart run stackchain migrate --state bloc

Use snake_case: ^[a-z][a-z0-9_]*$ — e.g. user_profile, not UserProfile.

Add another feature first, then remove the one you no longer need.

Choose a free name, or remove the target feature first.