Skip to content

(0 , __vite_ssr_import_0__.getApps) is not a function with nuxt-vuefire #1627

Open
@dword-design

Description

@dword-design

Reproduction

https://github.com/dword-design/demo-nuxt-vuefire-getapps-issue

Steps to reproduce the bug

I get this error when starting a minimal Nuxt project with nuxt-vuefire.

Image

Expected behavior

The page is shown

Actual behavior

(0 , __vite_ssr_import_0__.getApps) is not a function is shown

Additional information

My initial idea was that Nuxt has issues with firebase-admin back-importing a cjs file that includes stuff like this:

Object.defineProperty(exports, "getApps", { enumerable: true, get: function () { return lifecycle_1.getApps; } });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions