Initialize the repo with your firebase configuration. NOTE: auth must be enabled in nuxt.config.ts for vuefire
run npm run dev
Get the error ERROR [worker reload] [worker init] Cannot find package 'firebase-admin' imported from C:\Users\David\Documents\GitHub\nuxt-test\.nuxt\dev\index.mjs
Expected behavior
No error. Since I'm not using SSR, the firebase-admin package (and dependencies) should not be needed.
Actual behavior
Get this error: ERROR [worker reload] [worker init] Cannot find package 'firebase-admin' imported from C:\Users\David\Documents\GitHub\nuxt-test\.nuxt\dev\index.mjs
Additional information
This used to work on nuxt-vuefire v 0.2.0 before I upgraded to v 0.2.6. It works without error using nuxt-vuefire v 0.2.0 and vuefire v 3.1.7, so the issue seems to be with just the nuxt-vuefire package v 0.2.6 (you may have to restart the server to allow Nuxt to optimize the dependencies if you downgrade to fully remove the error).
Reproduction
https://github.com/davidstackio/nuxt-test
Steps to reproduce the bug
auth
must be enabled innuxt.config.ts
for vuefirenpm run dev
ERROR [worker reload] [worker init] Cannot find package 'firebase-admin' imported from C:\Users\David\Documents\GitHub\nuxt-test\.nuxt\dev\index.mjs
Expected behavior
No error. Since I'm not using SSR, the
firebase-admin
package (and dependencies) should not be needed.Actual behavior
Get this error:
ERROR [worker reload] [worker init] Cannot find package 'firebase-admin' imported from C:\Users\David\Documents\GitHub\nuxt-test\.nuxt\dev\index.mjs
Additional information
This used to work on
nuxt-vuefire
v 0.2.0 before I upgraded to v 0.2.6. It works without error usingnuxt-vuefire
v 0.2.0 andvuefire
v 3.1.7, so the issue seems to be with just thenuxt-vuefire
package v 0.2.6 (you may have to restart the server to allow Nuxt to optimize the dependencies if you downgrade to fully remove the error).