vuejs / vuefire

🔥 Firebase bindings for Vue.js
https://vuefire.vuejs.org
MIT License
3.82k stars 323 forks source link

[nuxt] [request error] [unhandled] [500] __vite_ssr_import_1__.default is not a constructor #1345

Closed mklueh closed 1 year ago

mklueh commented 1 year ago

Reproduction

no reproducer

Steps to reproduce the bug

My application won't start anymore with this nuxt-vuefire error

[nuxt] [request error] [unhandled] [500] __vite_ssr_import_1__.default is not a constructor
  at /home/user/workspace/my-project/node_modules/nuxt-vuefire/dist/runtime/app/plugin.server.mjs:13:18
  at processTicksAndRejections (node:internal/process/task_queues:96:5)
  at async ViteNodeRunner.directRequest (/home/user/workspace/my-project/node_modules/vite-node/dist/client.mjs:331:5)
  at async ViteNodeRunner.cachedRequest (/home/user/workspace/my-project/node_modules/vite-node/dist/client.mjs:171:14)
  at async ViteNodeRunner.dependencyRequest (/home/user/workspace/my-project/node_modules/vite-node/dist/client.mjs:220:14)
  at async ./virtual:nuxt:/home/user/workspace/my-project/apps/playground/demo/demo-app/.nuxt/plugins/server.mjs:7:31
  at async ViteNodeRunner.directRequest (/home/user/workspace/my-project/node_modules/vite-node/dist/client.mjs:331:5)
  at async ViteNodeRunner.dependencyRequest (/home/user/workspace/my-project/node_modules/vite-node/dist/client.mjs:220:14)
  at async /home/user/workspace/my-project/node_modules/nuxt/dist/app/entry.js:11:31

nuxi info

- Operating System: Linux
- Node Version:     v16.19.1
- Nuxt Version:     3.4.0
- Nitro Version:    2.3.3
- Package Manager:  yarn@3.5.0
- Builder:          vite
- User Config:      -
- Runtime Modules:  -
- Build Modules:    -

related dependencies

  "firebase": "^9.19.1",
  "nuxt-vuefire": "^0.1.6",
  "vuefire": "^3.1.0",

Expected behavior

Application previously started and worked with no problem

Actual behavior

Loading page causes the error above

Additional information

Can't currently reproduce it. I've tried to downgrade several dependencies with no success