kriasoft / react-starter-kit

The web's most popular Jamstack front-end template (boilerplate) for building web applications with React
https://reactstarter.com
MIT License
22.69k stars 4.16k forks source link

Cannot open started application due to Firebase error #2006

Closed emirmo closed 1 year ago

emirmo commented 2 years ago

Environment details

OS: Ubuntu 22.04.1 LTS Node version: v18.8.0

Steps to reproduce:

1) Execute the following steps from readme:

$ git clone https://github.com/kriasoft/react-starter-kit.git example
$ cd ./example
$ yarn install
$ yarn start

2) Navigate via web browser to the following URL: http://localhost:5173/

The browser shows the following error: Uncaught FirebaseError: Installations: Missing App configuration value: "projectId" (installations/missing-app-config-values).

Fixes attempted:

Changing Firebase credentials by adding my own does not help. If there are additional instructions in readme file that I've missed, please add them.

peterkuykendall commented 2 years ago

Having the same problem

emirmo commented 2 years ago

Having the same problem

I suspect the following part of the readme file is intended to indicate how to approach this:

update the environment variables found in [env/*.env]

So if you set the following environment variables to some values (they do not even have to be valid credentials), the error no longer occurs:

GOOGLE_CLOUD_PROJECT=
GOOGLE_CLOUD_REGION=

However, I'd suggest developers update the readme file to clarify this further.

Additionally, my web browser reports other console errors even after this issue is fixed.