Skip to content

Failed to parse /home/user/project_name/.dart_tool/package_graph.json: dependencies for example missing. Try running flutter pub get #4674

@nespjin

Description

@nespjin

Environment

Flutter 3.35.1
Ubuntu 25.04

Problem

In the member packages of workspace, there is an example sub-package. example does not have pub get, and when running pub get in workspace, this problem will occur

The directory such as:
workspace/

  • packages/
  • package_a/
  •    example
    
  • pubspec.yaml

The pubspec.yaml of workspace

workspace:
  - packages/package_a

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions