Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with build_runner: Type 'InvalidType' not found in generated file #3673

Open
AzPsu opened this issue Apr 23, 2024 · 0 comments
Open

Error with build_runner: Type 'InvalidType' not found in generated file #3673

AzPsu opened this issue Apr 23, 2024 · 0 comments

Comments

@AzPsu
Copy link

AzPsu commented Apr 23, 2024

Hi devs,

I'm encountering an issue when trying to generate code via build_runner in my Flutter project. The error message I'm seeing is:

My Env:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.6, on macOS 14.3.1 23D60 darwin-arm64, locale en-SA)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.87.0)
[✓] Connected device (3 available)            
[✓] Network resources

Error:

lib/stores/home.g.dart:51:3: Error: Type 'InvalidType' not found.

This error occurs inconsistently and I'm not sure why it's happening. I'd appreciate any insights or suggestions on how to resolve this issue.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant