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

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_77 /discount-app-components**_

2 Likes

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

any update?

1 Like

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

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

<React.StrictMode>


</React.StrictMode>