Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blank page. #43

Closed
Ghost-23 opened this issue Apr 17, 2021 · 9 comments
Closed

Blank page. #43

Ghost-23 opened this issue Apr 17, 2021 · 9 comments

Comments

@Ghost-23
Copy link

Hi.
Firstly - solid work coding the eCommerce site, it looks sick!

I installed the dependencies, did all I should (I believe), and ran the code on my local port but I get a blank screen. VS code says the deployment was successful though.

Did I not do something right?
P.S I'm a noob

@jgudo
Copy link
Owner

jgudo commented Apr 17, 2021

Heyyyy. Thanks @Ghost-23! It could be a firebase-related error. Does any error message show up in console?

@Ghost-23
Copy link
Author

Yes. I've attached 2 images. I don't know what I'm to upgrade if I'm honest.
Annotation 2021-04-18 004526
Annotation 2021-04-18 004603

@jgudo
Copy link
Owner

jgudo commented Apr 17, 2021

@Ghost-23 You don't have to worry about that for now. It's the uglifyjs-webpack-plugin 's dependency issue.
How about the error log on your browser that causes blank screen?

@Ghost-23
Copy link
Author

Annotation 2021-04-18 011149

@jgudo
Copy link
Owner

jgudo commented Apr 17, 2021

Did you create a .env file and named it .env.dev then putting all necessary configs there?

@Ghost-23
Copy link
Author

Yeah, I'm a complete noob.

I believe I have.

Annotation 2021-04-18 012639

@jgudo
Copy link
Owner

jgudo commented Apr 17, 2021

You can't have any js code on env files. The format should be like this. Just replace the necessary field value.

FIREBASE_API_KEY=AIzaKJgkjhSdfSgkjhdkKJdkjowf
FIREBASE_AUTH_DOMAIN=yourauthdomin.firebaseapp.com
FIREBASE_DB_URL=https://yourdburl.firebaseio.com
FIREBASE_PROJECT_ID=yourproject-id
FIREBASE_STORAGE_BUCKET=yourstoragebucket.appspot.com
FIREBASE_MSG_SENDER_ID=43597918523958
FIREBASE_APP_ID=234598789798798fg3-034

@Ghost-23
Copy link
Author

Holy Sh*t that worked!
Thank you so much!

@jgudo
Copy link
Owner

jgudo commented Apr 18, 2021

Cheers!

@jgudo jgudo closed this as completed Apr 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants