Open bitsnaps opened 6 years ago
According to the error, the env
module (file) seems to be missing, not Firebase.
There's a slight rectification in the Build Steps:
# install dependencies
npm install
# Clone the env file
# And update the contents
cp src/env.example.js src/env.js
# serve with hot reload at localhost:8080
npm run dev
The env.js
file (and the env.example.js
file) is in the src/
directory and not in the project's root. This should fix the issue.
Thanks, I looked for env.js
and I found it as you say at src
, I created PR for that. I'm not expert with firebase (I've just did my first firebase-demo project with CLI...), so here is what I did: I've created a new firebase web project, I copied login info from console to env.js
, then I did npm run dev
, I got localhost:8080
up and running but whenever I click on Continue with Google
it opens a window then it close it quickly, I tried npm run build
it ends with Build complete
but nothing different when I run npm start
. Should I define firebase.json
config file first?
Hello @kunalvarma05 ,
Thanks for classroom package but I am getting the error like this,
ERROR Failed to compile with 2 errors
These dependencies were not found:
firebase in ./src/lib/Firebase.js
firebase/firestore in ./src/lib/Firebase.js
To install them, you can run: npm install --save firebase firebase/firestore
while installing the same command its gives error like;
Error while executing: npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/firebase/firestore.git npm ERR! npm ERR! Permission denied (publickey). npm ERR! fatal: Could not read from remote repository. npm ERR! npm ERR! Please make sure you have the correct access rights npm ERR! and the repository exists.
So for resolving above error I have tried below command but still it's not working for me;
https://www.npmjs.com/package/firebase
npm i firebase
kindly provide me some guide to how to solve this error..
Thanks!
I have this same issue
I have this problem also.
Hi, I got an error after running
npm run dev
:Should I install firebase?