EddyVerbruggen / nativescript-plugin-firebase

:fire: NativeScript plugin for Firebase
https://firebase.google.com
MIT License
1.01k stars 448 forks source link

export 'messaging' was not found in '@nativescript/firebase #1669

Open tidusjar opened 3 years ago

tidusjar commented 3 years ago

Getting the following when compiling on android ({N} Angular)

WARNING in ./app/login/login.component.ts 203:34-43 "export 'messaging' was not found in '@nativescript/firebase' @ ./app/login/login.module.ts @ ./app/app-routing.module.ts @ ./app/app.module.ts @ ./main.ts

Version 11.0.0

Import:

import { messaging } from "@nativescript/firebase";
jessorlisa commented 3 years ago

For me the following worked:

import { firebase } from '@nativescript/firebase';

along with changing any messaging.xxx call to firebase.xxx.

tidusjar commented 3 years ago

Thanks that does work

bertke commented 3 years ago

When I try to use the line:

import { firebase } from '@nativescript/firebase' ;

I get 'cannot find module' (in the editor it highlights the @nativescript/firebase part). Is there something I need to install to get that to work? My app was working until I upgraded to NS7 but now is erroring on the nativescript-firebase plug-in

nikoTM commented 3 years ago

import { messaging } from '@nativescript/firebase/messaging';

Seems to be working without warnings. But I think messaging is supposed to working when imported directly from @nativescript/firebase.