Have your say in Community Polls: What was/is your greatest motivation to start your own business?

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

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 4 (4)

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 2

any update?

 

phester17
Shopify Partner
22 1 14

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

Ahsan_74
Shopify Partner
1 0 0

in src folder of react app, the index.js file ,set appprovider component

<React.StrictMode>
    <AppProvider>
    <App />
    </AppProvider>
 
  </React.StrictMode>