The grouper does not match the member's type

The grouper's TValue is not the member's type or its element type.

  • Error
  • BEVEL069

What it means

A grouper reads values from your member. Its input type must match what the member holds.

Example message

text
Data/Posts/BlogPost.cs(6,15): error BEVEL069: [GroupBy("Tags")] on 'BlogPost.Tags': grouper 'YearGrouper' categorizes 'DateTime', which does not fit the member type 'String' (or its element type). Help: https://khalidabuhakmeh.github.io/bevel/reference/diagnostics/bevel069/

How to fix

Change the grouper's TValue to the member's type. For a list or array member, use the element type.