You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not able to get the build the frontend by following the documentation. you can reproduce it by following the steps below
Steps:
npm init @shopify/app@latest
npm run build
Error: Building the frontend app without an API key. The frontend build will not run without an API key. Set the SHOPIFY_API_KEY environment variable when running the build command.
Followed the instructions to only build the frontend "cd web/frontend/ && SHOPIFY_API_KEY=REPLACE_ME npm run build"
Error: 'SHOPIFY_API_KEY' is not recognized as an internal or external command
I was able to make it work by adding it in the packages.json file "build": "shopify app build --api-key=YourKey" but any idea how to make it work without manually adding it to the packages.json?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I am not able to get the build the frontend by following the documentation. you can reproduce it by following the steps below
Steps:
I was able to make it work by adding it in the packages.json file "build": "shopify app build --api-key=YourKey" but any idea how to make it work without manually adding it to the packages.json?
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions