Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

Error in storefront not open #1070

Open
ionut98G opened this issue Jul 9, 2021 · 15 comments
Open

Error in storefront not open #1070

ionut98G opened this issue Jul 9, 2021 · 15 comments
Labels

Comments

@ionut98G
Copy link

ionut98G commented Jul 9, 2021

image

@mehrdad-shokri
Copy link

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

@ionut98G
Copy link
Author

ionut98G commented Jul 9, 2021

I have this error
image

@mehrdad-shokri
Copy link

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

@ionut98G
Copy link
Author

ionut98G commented Jul 9, 2021

No

@ionut98G
Copy link
Author

ionut98G commented Jul 9, 2021

I have this file:
image

@mehrdad-shokri
Copy link

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

@ionut98G
Copy link
Author

ionut98G commented Jul 9, 2021

In storefront folder?

@mehrdad-shokri
Copy link

yes

@mehrdad-shokri
Copy link

please update NEXT_PUBLIC_API_URI to your saleor api url

@ionut98G
Copy link
Author

ionut98G commented Jul 9, 2021

image
Same error...

@mehrdad-shokri
Copy link

you need to run npm run build before npm start

@ionut98G
Copy link
Author

ionut98G commented Jul 9, 2021

image

@mehrdad-shokri
Copy link

I don't know reason of this error sorry

@frediian
Copy link

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

@stale
Copy link

stale bot commented Sep 26, 2021

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.

@stale stale bot added the stale label Sep 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants