Nativescript-plugin-firebase: Few errors

Created on 2 Mar 2019  Â·  4Comments  Â·  Source: EddyVerbruggen/nativescript-plugin-firebase

Hello !
I would like to create a new project web/mobile with nativescript/angular/firebase. I followed all steps but I got this stack when doing ng serve:

WARNING in ./node_modules/tns-core-modules/profiling/profiling.js
Module not found: Error: Can't resolve '~/package.json' in 'E:\Travail\wamp64\www\MemeGame\frontend\MemeGamenode_modules\tns-core-modules\profiling'

ERROR in ./node_modules/nativescript-plugin-firebase/app/auth/index.js
Module not found: Error: Can't resolve '../../firebase' in 'E:\Travail\wamp64\www\MemeGame\frontend\MemeGamenode_modules\nativescript-plugin-firebase\app\auth'
ERROR in ./node_modules/nativescript-plugin-firebase/app/database/index.js
Module not found: Error: Can't resolve '../../firebase' in 'E:\Travail\wamp64\www\MemeGame\frontend\MemeGamenode_modules\nativescript-plugin-firebase\app\database'
ERROR in ./node_modules/nativescript-plugin-firebase/app/firestore/index.js
Module not found: Error: Can't resolve '../../firebase' in 'E:\Travail\wamp64\www\MemeGame\frontend\MemeGamenode_modules\nativescript-plugin-firebase\app\firestore'
ERROR in ./node_modules/nativescript-plugin-firebase/app/functions/index.js
Module not found: Error: Can't resolve '../../firebase' in 'E:\Travail\wamp64\www\MemeGame\frontend\MemeGamenode_modules\nativescript-plugin-firebase\app\functions'
ERROR in ./node_modules/nativescript-plugin-firebase/app/storage/index.js
Module not found: Error: Can't resolve '../../storage/storage' in 'E:\Travail\wamp64\www\MemeGame\frontend\MemeGamenode_modules\nativescript-plugin-firebase\app\storage'
ERROR in ./node_modules/nativescript-plugin-firebase/app/index.js
Module not found: Error: Can't resolve '../firebase' in 'E:\Travail\wamp64\www\MemeGame\frontend\MemeGamenode_modules\nativescript-plugin-firebase\app'
ERROR in ./node_modules/tns-core-modules/file-system/file-system.js
Module not found: Error: Can't resolve './file-system-access' in 'E:\Travail\wamp64\www\MemeGame\frontend\MemeGamenode_modules\tns-core-modules\file-system'
ERROR in ./node_modules/tns-core-modules/file-system/file-system.js
Module not found: Error: Can't resolve 'platform' in 'E:\Travail\wamp64\www\MemeGame\frontend\MemeGamenode_modules\tns-core-modules\file-system'
i ï½¢wdmï½£: Failed to compile.

I saw this issue: https://github.com/NativeScript/NativeScript/issues/4706
But changing the alias didn't works.

Any idea ?
Thank you !

All 4 comments

Is there an issue with this plugin?

ERROR in ./node_modules/nativescript-plugin-firebase/app/auth/index.js
Module not found: Error: Can't resolve '../../firebase' in 'E:\Travail\wamp64\www\MemeGame\frontend\MemeGamenode_modules\nativescript-plugin-firebase\app\auth'
ERROR in ./node_modules/nativescript-plugin-firebase/app/database/index.js
Module not found: Error: Can't resolve '../../firebase' in 'E:\Travail\wamp64\www\MemeGame\frontend\MemeGamenode_modules\nativescript-plugin-firebase\app\database'
ERROR in ./node_modules/nativescript-plugin-firebase/app/firestore/index.js
Module not found: Error: Can't resolve '../../firebase' in 'E:\Travail\wamp64\www\MemeGame\frontend\MemeGamenode_modules\nativescript-plugin-firebase\app\firestore'
ERROR in ./node_modules/nativescript-plugin-firebase/app/functions/index.js
Module not found: Error: Can't resolve '../../firebase' in 'E:\Travail\wamp64\www\MemeGame\frontend\MemeGamenode_modules\nativescript-plugin-firebase\app\functions'
ERROR in ./node_modules/nativescript-plugin-firebase/app/storage/index.js
Module not found: Error: Can't resolve '../../storage/storage' in 'E:\Travail\wamp64\www\MemeGame\frontend\MemeGamenode_modules\nativescript-plugin-firebase\app\storage'
ERROR in ./node_modules/nativescript-plugin-firebase/app/index.js
Module not found: Error: Can't resolve '../firebase' in 'E:\Travail\wamp64\www\MemeGame\frontend\MemeGamenode_modules\nativescript-plugin-firebase\app'

I guess it is !
Edit: I just removed nativescript-plugin-firebase (npm remove nativescript-plugin-firebase) and it's compiling fine

What do you want me to do? It’s something in your setup, because the demo apps in this repo work just fine..

@Araknos try this version:
"@nativescript/firebase": "11.0.0-rc.0"

And replace the imports in your project to:
import { firebase } from "@nativescript/firebase"

Was this page helpful?
0 / 5 - 0 ratings