-
Notifications
You must be signed in to change notification settings - Fork 892
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Service messaging is not available #7707
Comments
Hi @lfernandes00, thanks for reaching out and apologies for the delay. I was able to replicate the behavior you've mentioned. Let me check what we can do for this issue or bring someone here that can provide more context about it. I’ll update this thread if I have any information to share. |
The error is thrown after the checker here: https://github.com/firebase/firebase-js-sdk/blob/master/packages/messaging-compat/src/messaging-compat.ts#L71C2-L71C2. @lfernandes00 can you check which statement(s) is evaluating to false? |
any fix for above issue,im facing the same with Error: Service messaging is not available "firebase": "^9.9.1","next": "13.2.4", |
Exact same issue here, still. Trying to move from 8.10.1 -> 10.8.0 |
Hi we have the same problem only when we build the angular project with "--configuration production" option. Any idea why and how to solve it? thanks |
any updates on this ? |
Remove all Firebase packages, then install only the My project is a monorepo and in my case |
This problem is often caused by a messy npm install, or some other build config issue that causes your app to import "app" and "messaging" from two separate namespaces. In the case of the original post, where the user showed their imports, the imports look correct and are in the same file, so I would recommend a clean npm install:
People may also be installing different kinds of firebase packages as mentioned in the post right above this one. Another problem I have seen is that users import Since this issue has many causes (there are many ways users can be grabbing Firebase "app" and product bundles from different sources), it's very important that you post the specific details of your situation (at least your imports and some info about your build config, most ideally a minimal repro) because the fix for you may be very different than the fix for the original user. |
Operating System
Windows 10
Browser Version
Chrome v118.0.5993.88
Firebase SDK Version
9.9.4
Firebase SDK Product:
Messaging
Describe your project's tooling
I have a NextJS app (v12)
Describe the problem
The problem is when i try to configure the firebase file, the following error is occuring:
Error: Service messaging is not available
I also have this error:
Steps and code to reproduce issue
Firebase.ts:
PS: I've seen some threads that recommend downgrading firebase to v8, but I'd like to keep it in v9. Is there any way to fix this?
The text was updated successfully, but these errors were encountered: