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
Nuxt.js Internal Server Error with firebase #41
Comments
@dowdiness Please consider not exposing Can you please share the link of your deployment? Logs are accessible with |
As I figured out, this error caused by importing submodule in second line:
Temporary way to solve this might be importing firebase-admin for SSR and submodules for Client Side. But I haven't tested it yet. |
Having the same issue |
I have fixed it by adding firebase packages into webpack externals as CommonJS modules in nuxt.config file for SSR bundle:
So glad I finally managed it out. Hope it will help anyone else |
Same issue here. @MarvinMiles can you elaborate on your solution? It doesn't work for me but if I'm able to understand it, I might be able to come up with something myself. What exactly is the issue here? Is it Firebase? Or Nuxt? (or even ZEIT?) What causes that Problem? Thank you for any hints! |
@Atinux I think this issue should be reopened. Using firebase breaks nuxt on ZEIT v2 and it doesn't seem there is an easy fix 🤔. This is the output from ZEIT when a request is made:
Failing Deployment example (private): |
Was there a resolution to this issue? |
@vimota #41 (comment) resolves your issue. |
@danielroe that doesn't fix the issue for me at least. |
@codeofsumit It fixes your repro for me. https://ssr-zeit-firebase-h8vei5q9y.now.sh/ |
Hm, will check again thank you! |
It did indeed resolve my issues as well! Just curious, is that a bug or expected behaviour? I don't totally get why we have to add it to the externals config. |
I think this might be a reasonable explanation. for why firebase and lambda can cause problems. |
Hey guys, Are you guys using the now.json version 2?
So, it looks like the @MarvinMiles didn't apply. Anyway, I'm still getting the error here.
|
I'm still having this issue. Any update? |
@alexkasongo Check your Vercel logs for the cause and consider/try explanations above ☝️ |
Hello
Everything is fine when I work in locally but in production I get Nuxt.js Internal Server Error.
I found some threads about this issue with Next.js and it seems if you only import submodules of firebase in Next.js, it works fine.
Firebase + Next.JS
How to get a next.js / firestore project to deploy on Zeit 2.0?
Actually, I only import submodules but still doesn't work properly.
This is my commit added firebase into project
This project uses nuxt v2.6.3 and firebase v6.0.1.
Anyone has an idea to solve this issue?
The text was updated successfully, but these errors were encountered: