I was facing an issue related to not defining a specific type for the prod when the line_items is being pushed:

If anyone else are facing the same issue, remember to set the type for the product, when you are iterating over the array of line_items:
filteredProducts.forEach((product: Product) => { line_items.push({ price: product.priceId!, quantity: 1, }) })
I was facing an issue related to not defining a specific type for the prod when the line_items is being pushed:

If anyone else are facing the same issue, remember to set the type for the product, when you are iterating over the array of line_items:
filteredProducts.forEach((product: Product) => { line_items.push({ price: product.priceId!, quantity: 1, }) })