DEV Community

Discussion on: How to add FCM (Firebase Cloud Messaging) to VueJS

Collapse
 
abdullahch profile image
M.Abdullah Ch

I am getting an error

ERROR  Failed to compile with 1 error                                         1:17:23 AM

This dependency was not found:

* https://www.gstatic.com/firebasejs/9.6.3/firebase-app.js in ./node_modules/firebase/firebase-messaging.js

To install it, you can run: npm install --save https://www.gstatic.com/firebasejs/9.6.3/firebase-app.js
Enter fullscreen mode Exit fullscreen mode
Collapse
 
vbanditv profile image
Fima Taf

Are you trying to install firebase npm package? If you do, then what is the version ?

Collapse
 
sdenman profile image
SimonD

Hi,
I'm getting this too - on build.
Do you remember how you fixed it - assuming you did :)
Thanks

Collapse
 
devsmk profile image
S M Khalilullah

This is due to a firebase npm package version 9 bug.
Solution: steps-

  1. npm uninstall firebase
  2. npm install firebase@8.10.0