Unable to read .env file

Hello,

I am a Shopify developer currently working on a Shopify theme app extension using this library. Unfortunately, I am encountering an issue where I cannot read the .env file in App.jsx (located in frontend/components/App.jsx). Despite using process.env.KEY, it consistently returns undefined. Could you please assist me in resolving this issue and guide me on how to read the .env file properly?

Thank you for your help.

Hi HarikrishnaIam,

It’s possible this issue is related to the library you’re using, I’d recommend opening an issue in the library’s repo here: https://github.com/iskurbanov/theme-app-extension-react/issues