DiscountProvider error: No i18n was provided. Your application must be wrapped in an <AppProvider>.

osama-onstate
Shopify Partner
2 0 2

Hi,


I'm getting the following error in my console (PFA).


I created an application by cloning the node template using the following command.

 

 

npm init @shopify/app@latest -- --template https://github.com/Shopify/shopify-app-template-node

 

 

 

I created a Product Discount extension and followed the steps mentioned in the Shopify docs. I've added a DiscountProvider and included it in the App.jsx

Everything builds and works fine, until I use a component from @Shopify/discount-app-components

 

osamaonstate_0-1692109778299.png

 

Replies 3 (3)
autom4ton
Shopify Partner
2 0 0

I am getting the same issue, if anyone has advice on this it would be so helpful.

 

zksumon
Shopify Partner
9 0 1

any update?

 

phester17
Shopify Partner
16 1 5

Same issue here. Error starting showing recently for me. Did you ever figure out the issue?