EddyVerbruggen / nativescript-plugin-firebase

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

Export 'Enums' not found #1805

Open jarkaK opened 3 years ago

jarkaK commented 3 years ago

I use the newest nativescript (vue) with Firebase plugin (see versions info below). I get warning

WARNING in ./node_modules/@nativescript/firebase/admob/admob.ios.js 277:45-68
export 'Enums' (imported as 'Enums') was not found in '@nativescript/core

My init in app.js

const { firebase } = require("@nativescript/firebase");

firebase.init({}).then(
    function () {
      console.log("firebase.init done");
    },
    function (error) {
      console.log("firebase.init error: " + error);
    }
);

Dependencies:

"dependencies": {
    "@nativescript-community/ui-material-bottom-navigation": "^5.2.14",
    "@nativescript-community/ui-material-tabs": "^5.2.14",
    "@nativescript/core": "~8.0.0",
    "@nativescript/firebase": "^11.1.3",
...

Is this known issue/is there any hotfix available?

prestopasto commented 3 years ago

I think in NativeScript 8 "Enums" has been replaced with "CoreTypes". Does it fix it if you change your import?