fullstackreact / react-yelp-clone

Tutorial: Build a Yelp-clone in React
https://www.fullstackreact.com/articles/react-tutorial-cloning-yelp/
MIT License
840 stars 218 forks source link

The browser shows nothing after configuring .env file with Google API Key #16

Open mastersoftwaremedia opened 8 years ago

mastersoftwaremedia commented 8 years ago

Hi Auser! Thanks for posting this tutorial. The only thing is that I am not getting the result that I suppose to get. I clone from repo and followed exactly the way it is stated. I am very new to React and NEM, so please bare with me. I think I am doing wrong with "Configuring the Application" part. Here's what I am having.

Got API and after executing this command-> cp .env.example .env

Inside .env file env

Server is running and working fine npmstart

The browser shows nothing localhost

What am I doing wrong?

mtndew1 commented 7 years ago

same here

njneer commented 7 years ago

You need to kill and re-run your process for the .env values to be loaded.

mastersoftwaremedia commented 7 years ago

Thanks for helping me out. Hmm.. how do I do that? Do you mean that I should ctrl+c to kill the server and npm run again to run the .env to be loaded? Can you please explain it again? Thank you in advance! I really appreciate it.

freimuth82 commented 7 years ago

@mastersoftwaremedia that is exactly what you should do then, after this, the .env file shall be correctly included. This worked for me.

ofostier commented 7 years ago

Hi,

Not working for me ! The page stay white and show nothing.

francescoderosa commented 7 years ago

Try to use yarn instead of npm. Use command yarn to get dependencies and yarn start to start project. It works for me!

auser commented 7 years ago

Is this closed?

mastersoftwaremedia commented 7 years ago

Hi Ari,

No, not at all.

On Fri, Jun 2, 2017 at 12:42 PM, Ari notifications@github.com wrote:

Is this closed?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/fullstackreact/react-yelp-clone/issues/16#issuecomment-305844633, or mute the thread https://github.com/notifications/unsubscribe-auth/AS_lT_sIPYn3rGn6DOF4H1-yyHeMYzeGks5sADtigaJpZM4KdvWu .

suitcasemedia commented 7 years ago

the same happened to me after cloning the entire project and configuring .env and api key: Except i have this error: Uncaught Error: You have provided a history object created with history v3.x. This version of React Router is not compatible with v3 history objects. Please use history v2.x instead. screenshot from 2017-07-29 12-53-21

suitcasemedia commented 7 years ago

the solution for me was here: https://github.com/fullstackreact/react-yelp-clone/issues/19