COOKLANG_E9501: Unresolved alternatives
Level: error(fatal)
What this error means
A recipe with ingredient alternatives was added to a shopping list without a choice for each alternative.
Common causes
choicesis missing or incomplete in the options ofShoppingList.addRecipe()
How to fix it
typescript
// Make sure each available choice is made
list.addRecipe(recipe, {
choices: {
ingredientItems: new Map( ... ), // need to be of size recipe.choices.ingredientItems.len
ingredientGroups: new Map( ... ), // need to be of size recipe.choices.ingredientGroups.len,
},
});The error message lists the alternatives that need a choice.