⚠️ This is pre-release documentation for v3. For stable docs, visit v2.
Skip to content

COOKLANG_E9504: Invalid pantry ​

Level: error(fatal)

What this error means ​

ShoppingList.addPantry() received something other than a Pantry instance or a TOML string.

How to fix it ​

typescript
list.addPantry(new Pantry(tomlContent));
// or
list.addPantry(tomlContent);