Shopify Functions are not working in the discount creation app I created following the tutorial

After creating an automatic discount with the discount creation app I created following the tutorial, I get a status code 500 “Internal Server Error” when I update my cart on the storefront.

https://shopify.dev/apps/discounts/create

I am not sure if the reason for the error when updating the cart is on the Shopify side and will be improved in the future, or if it is in my development environment. Is there anyone else experiencing the same problem?

Thanks for reporting this. It’s possible that you’re not using the Checkout Extensibility Developer Preview which is why this particular area is not working as expected. I’d suggest creating a new Development Store with the Developer Preview enabled and see if that fixes the issue.

2 Likes

Thank you for your reply. Resolved.

2 Likes