saleor / saleor-storefront

A GraphQL-powered, NextJs-based, PWA storefront for Saleor. IMPORTANT: This project is [DEPRECATED] in favor of saleor/react-storefront soon to become our default demo and storefront starter pack.

Home Page:https://demo.saleor.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in storefront not open

ionut98G opened this issue · comments

@ionut98G please provide more context to this so we can help. what have you run? your environment?

I have this error
image

@ionut98G do you have a file named .env at root?

No

I have this file:
image

That's Dockerfile. create a file named .env and put content as this:

# common envs
NEXT_PUBLIC_API_URI=http://localhost:8000/graphql/ #your saleor api url
NEXT_PUBLIC_SALEOR_CHANNEL_SLUG=default-channel
NEXT_PUBLIC_DEMO_MODE=false
NEXT_PUBLIC_GTM_ID=
NEXT_PUBLIC_SENTRY_APM=0
NEXT_PUBLIC_SENTRY_DSN=
# ssr envs
INCREMENTAL_STATIC_REGENERATION_REVALIDATE=3600 # 1 hour
NEXT_PUBLIC_STATIC_PATHS_FALLBACK=blocking

In storefront folder?

please update NEXT_PUBLIC_API_URI to your saleor api url

image
Same error...

you need to run npm run build before npm start

I don't know reason of this error sorry

in Windows: i use nvs, uninstall node from programs and use nvs for install the version that required in stable and master release, then run again the same command

and this is the result

image

i put the file .env install all dependencies , and dont run the storefront

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.