toeverything/AFFiNE · error · Error

Unsupported property type: ${type}

Error message

Unsupported property type: ${type}

What it means

PropertyFilterProvider.filter$ throws when no FilterProvider is registered for the property's type ('property:<type>'), meaning the property type has no filter implementation (e.g. an exotic or newly added type).

Source

Thrown at packages/frontend/core/src/modules/collection-rules/impls/filters/property.ts:28

    private readonly workspacePropertyService: WorkspacePropertyService
  ) {
    super();
  }

  filter$(params: FilterParams): Observable<Set<string>> {
    const property$ = this.workspacePropertyService.propertyInfo$(params.key);

    return property$.pipe(
      switchMap(property => {
        if (!property) {
          throw new Error('Unknown property');
        }
        const type = property.type;
        const provider = this.framework.getOptional(
          FilterProvider('property:' + type)
        );
        if (!provider) {
          throw new Error(`Unsupported property type: ${type}`);
        }
        return provider.filter$(params);
      })
    );
  }
}

View on GitHub (pinned to b4c8548c09)

Solutions

  1. Use a property type supported by the filter system.
  2. Add a filter implementation for this property type.
Defensive patterns

Strategy: type-guard

When it happens

Trigger: Thrown in the property filter dispatcher when no filter provider is registered for the property's type.

Common situations: Occurs when filtering by a workspace property whose type has no registered filter provider (new or custom property type); use a supported property type or update the app.


AI-assisted analysis of toeverything/AFFiNE@b4c8548c09 (2026-08-18). Data as JSON: /api/errors/9320cc9c29fac773. Report an issue: GitHub.