/home/runner/work/openfoodfacts-explorer/openfoodfacts-explorer/src/routes/folksonomy/[key]/+page.ts:12:31
Error: 'tags' is possibly 'undefined'.
const productsApi = new ProductsApi(fetch);
const products = Promise.all(tags.map((tag) => productsApi.getProductName(tag.product)));
/home/runner/work/openfoodfacts-explorer/openfoodfacts-explorer/src/routes/products/[barcode]/+page.ts:35:56
Error: Argument of type 'string' is not assignable to parameter of type 'number'.
/home/runner/work/openfoodfacts-explorer/openfoodfacts-explorer/src/routes/folksonomy/[key]/+page.svelte:31:10
Error: Argument of type '{ product: string; k: string; v: string; owner?: string | undefined; version?: number | undefined; editor?: string | undefined; last_edit?: string | undefined; comment?: string | undefined; }[] | undefined' is not assignable to parameter of type 'ArrayLike | Iterable'.
Type 'undefined' is not assignable to type 'ArrayLike | Iterable'. (ts)
/home/runner/work/openfoodfacts-explorer/openfoodfacts-explorer/src/routes/folksonomy/[key]/+page.svelte:[46](https://github.com/openfoodfacts/openfoodfacts-explorer/actions/runs/9978560153/job/27575728209#step:6:47):55
Error: 'tag' is of type 'unknown'. (ts)
====================================
svelte-check found 7 errors and 0 warnings in 3 files
/home/runner/work/openfoodfacts-explorer/openfoodfacts-explorer/src/routes/folksonomy/[key]/+page.ts:12:31 Error: 'tags' is possibly 'undefined'. const productsApi = new ProductsApi(fetch); const products = Promise.all(tags.map((tag) => productsApi.getProductName(tag.product)));
/home/runner/work/openfoodfacts-explorer/openfoodfacts-explorer/src/routes/products/[barcode]/+page.ts:35:56 Error: Argument of type 'string' is not assignable to parameter of type 'number'.
/home/runner/work/openfoodfacts-explorer/openfoodfacts-explorer/src/routes/folksonomy/[key]/+page.svelte:31:10 Error: Argument of type '{ product: string; k: string; v: string; owner?: string | undefined; version?: number | undefined; editor?: string | undefined; last_edit?: string | undefined; comment?: string | undefined; }[] | undefined' is not assignable to parameter of type 'ArrayLike | Iterable'.
Type 'undefined' is not assignable to type 'ArrayLike | Iterable'. (ts)
{#each data.tags as tag, i}