question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

nuxt/firebase + Vercel SSR?

See original GitHub issue

I’ve been trying to deploy my Nuxt SSR app build with nuxt/firebase on Vercel and it keeps throwing the following errors:

WARN Error enabling offline persistence. Falling back to persistence disabled: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
MrAyushcommented, Sep 16, 2021

Here is a workaround Why this happens (see the full issue @nuxtjs/vercel-builder #41)

export default {
  build: {
    extend(config, { isServer }) {
      if (isServer) {
        config.externals = {
          '@firebase/app': 'commonjs @firebase/app',
          '@firebase/auth': 'commonjs @firebase/auth',
          '@firebase/firestore': 'commonjs @firebase/firestore',
          // ...
        }
      }
    }
  }
}
0reactions
adarsh4dcommented, Jul 1, 2021

Having the same issue #557

@cfofiu Did you find any solution for this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deploying Nuxt SSR Universal App on Vercel serverless ...
I made the project following a course, the tutor also hosts the project on vercel. My app is bigger because I used alternatives...
Read more >
Where are you hosting your nuxt app? - Reddit
I'm using server side rendering (SSR), which normally run on a node sever in backend. But, according to vercel doc they handle SSR...
Read more >
Create a SSR + Serverless App with Firebase & Nuxt.js within ...
It's so easy to make a web app UI with Vue.js. Nuxt.js is using Vue.js technology to make SSR(Server Side Rendering) possible. I...
Read more >
Deploy Nuxt to Vercel - DEV Community ‍ ‍
Here's how I deploy Nuxt JS to Vercel. This method is still running on February 1, 2022. Maybe in the future the method...
Read more >
Vercel - Nuxt
For more information, see this Vercel guide . SSR with Vercel. To deploy a serverless Nuxt runtime with Vercel , the Nuxt team...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found