Open ionut98G opened 3 years ago
@ionut98G please provide more context to this so we can help. what have you run? your environment?
I have this error
@ionut98G do you have a file named .env
at root?
No
I have this file:
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?
yes
please update NEXT_PUBLIC_API_URI to your saleor api url
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
i put the file .env install all dependencies , and dont run the storefront
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.