-
Notifications
You must be signed in to change notification settings - Fork 27.5k
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
npm install fails with firebase example "with-firebase-authentication" #10092
Comments
Get the same stacktrace in a Vue SPA with firebase auth. |
It seems that older versions of |
@chibicode yes, I believe that after updating firebase & firebase admin this gets resolved. I submitted also that after a successful npm install we are facing another issue: with firebase authentication cannot find module '@firebase/app' after npm install I would appreciate a working example on how to properly protect routes in NextJS using Firebase Authentication. I have also submitted a StackOverFlow questions for this: |
I can confirm that after updating (only) firebase & firebase-admin the npm install works perfectly, and I immediately had the example running with my own firestore database credentials for client and server. My cat package.json
{
"name": "with-firebase",
"version": "1.0.0",
"scripts": {
"dev": "node server.js",
"build": "next build",
"start": "NODE_ENV=production node server.js"
},
"dependencies": {
"body-parser": "^1.17.1",
"express": "^4.14.0",
"express-session": "^1.15.2",
"firebase": "^7.6.2",
"firebase-admin": "^8.9.0",
"isomorphic-unfetch": "2.0.0",
"next": "latest",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"session-file-store": "^1.0.0"
}
} Please forgive me for not providing a PR, I will be able to next week if no-one else has time. |
created the relevant PR based on discussions and applied it across all firebase examples |
Do you guys know how to fix this: |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Examples bug report
Example name
with-firebase-authentication
Describe the bug
npm install
fails with any of the methods described in the example README (using create-next-app with either npm or yarn, downloading of example and performingnpm install
on Ubuntu and on Mac OS.)Error shown:
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
After running
npm install
and following firestore database configuration instructions, be able to runnpm run dev
Screenshots
none
System information
package.json
The text was updated successfully, but these errors were encountered: