A [Reference] cannot find its target
A [Reference] points at a dataset that is not a list, or uses a Key the target type does not have.
What it means
[Reference] links an item to items in another dataset by key. Bevel needs the target dataset to be a list, and the Key member to exist on the item type.
Example message
Data/Posts/BlogPost.cs(6,15): error BEVEL013: Dataset 'Posts' (declared by BlogPost): [Reference] on 'Author' uses Key 'Handle', which does not exist on 'Author' (items of dataset 'Authors'). Fix the Key, or add that member to the referenced type. Help: https://khalidabuhakmeh.github.io/bevel/reference/diagnostics/bevel013/
How to fix
- Point
[Reference]at a dataset that loads a list. - Make
Keyname a public member of the target item type, or add that member.
[Reference("Authors", Key = "Handle")]
[Reference("Authors", Key = "Slug")]
public Author Author { get; init; }