(2024)Adding Products to Cart addToCurrentCart( ) function not working?

Okay so this is from Velo documentation, basically the product is not being added to the cart.lineItems array, in short, not being added to cart. I tried to copy and paste everything here however it’s still not adding to lineItems so just wanna know why that is, considering that this is the updated function as written for adding products to cart:

https://dev.wix.com/docs/velo/api-reference/wix-ecom-backend/current-cart/add-to-current-cart