Skip to content

FF AI SDK 0.0.36: library-imported DataStructs not resolved by compileDslApp / typed SDK codegen #7208

@smn-snkl

Description

@smn-snkl
  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

On flutterflow_ai SDK 0.0.36 (build 4fde6ae1, latest as of 2026-06-11), any flutterflow ai run (and validate / --dry-run) against a project that imports a library defining DataStructs fails at the compileDslApp task:

Bad state: Data struct "Feedback" was not found.

The same root cause surfaces in the generated typed SDK (lib/flutterflow_project/): schemas.dart and several components/*.dart files reference Structs.feedback, Structs.summary, Structs.contentPart — none of which exist on Structs because they're owned by the imported library — so the workspace fails dart analyze out of the box.

The DSL script being pushed is irrelevant. Our repro only edits three page-state defaults via state.ensureField(...) on a single page and never touches structs.

Expected Behavior

flutterflow_ai should resolve DataStruct (and Collection) references that point at structs owned by an imported library project. Specifically:

  1. Server-side compileDslApp should walk imported library projects when looking up a struct by name.
  2. Typed-SDK codegen for lib/flutterflow_project/schemas.dart and components/*.dart should emit qualified references for library-owned types instead of bare Structs.<name>.

Steps to Reproduce

  1. Bound FF AI workspace for a project that imports a library defining DataStructs (in our case project H6nwSLCuGw6vy5iiRK6T importing aumio_library_iri1io, which defines Feedback, Summary, ContentPart, etc.).
  2. Author any dsl/edit.dart — does not need to reference structs. Ours uses three state.ensureField(...) calls on a page:
    app.editPageState(onboardingV220260526Handle, (state) {
      state.ensureField('pageNames', listOf(string).withDefault(const <String>[ ... ]));
      state.ensureField('onboardingLoginPageIndex', int_.withDefault(10));
      state.ensureField('onboardingPostRegisterPageIndex', int_.withDefault(12));
    });
  3. flutterflow ai run dsl/edit.dart --project-id <id> --commit-message "...".
  4. Run fails at the compileDslApp task after ~150ms with Bad state: Data struct "Feedback" was not found. No proto mutation; no remote change.

Also reproduces with flutterflow ai validate dsl/edit.dart and --dry-run.

Confirmation the structs do exist (in the library, not the main project):

generated_code/dependencies/aumio_library_iri1io/lib/backend/schema/structs/
  feedback_struct.dart
  summary_struct.dart
  content_part_struct.dart
  reply_option_struct.dart
  session_struct.dart
  message_struct.dart
  translation_struct.dart
  custom_duration_struct.dart
  processing_state_struct.dart
  week_range_struct.dart
  index.dart

Local typed-SDK symptoms (same root cause):

dart analyze lib/flutterflow_project/ against the latest flutterflow ai refresh-context output reports:

  • schemas.dart: ContentRecommendation declares "feedback": Structs.feedback (line 448); Conversation declares "feedback": Structs.feedback (line 479). A partnerFeedback struct exists locally, but plain feedback does not.
  • components/reply_options.dart: Member not found: 'contentPart'
  • components/summary.dart: Member not found: 'summaries' — also a namespace bug: Collections.summaries exists, but the file references Structs.summaries, so the resolver may also be confusing struct vs collection namespaces for library-imported names.
  • components/summary_feedback_sheet.dart: Member not found: 'feedback', 'summary'
  • components/video_card_small.dart: Member not found: 'contentPart'

Reproducible from Blank

Not reproduced from a blank project yet — would require a blank project plus a blank library that defines at least one struct, with the main project referencing it. Happy to put one together if needed for investigation.

Bug Report Code

N/A — this is an FF AI SDK issue, not an FF editor / widget issue. The failure is in the SDK's struct-resolution path, not tied to any specific widget. Project ID H6nwSLCuGw6vy5iiRK6T is the affected project; the imported library is aumio_library_iri1io.

Visual documentation

N/A — CLI/SDK failure, no UI involved. Full run trace, support bundle, and case write-up are available locally and can be shared on request:

  • .flutterflow/traces/2026-06-11T14-50-10-528-s6t5cr.json
  • .flutterflow/support/exports/support-2026-06-11T14-50-10-528-s6t5cr/
  • .flutterflow/support/cases/case-2026-06-11T14-50-10-528-s6t5cr/

Environment

  • flutterflow_ai SDK: 0.0.36 (build 4fde6ae1, released 2026-06-02)
  • Dart: 3.10.8
  • Platform: macOS (Darwin 25.5.0)
  • Project: H6nwSLCuGw6vy5iiRK6T (imports library aumio_library_iri1io)

Additional Information

This is a hard block — no DSL pushes succeed against any project that imports a library defining structs.

Workaround for local dart analyze only: import the specific page/component file directly instead of the flutterflow_project.dart barrel — bypasses the broken schemas.dart/components/*.dart but doesn't help the server compile. No workaround exists for the push path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions