Firebase npm module integration

Hi,

I’m having some trouble getting firebaseui from the npm module. I am using the lines below to import:

import * as firebase from ‘firebase/app’ ;
//import ‘firebase/auth’;
import * as firebaseui from ‘firebaseui’ ;

I keep getting the error:

Cannot find module ‘firebaseui’ in ‘public/pages/ddqzw.js’

Am I using the correct name to import the module? Any help or point in the right direction is much appreciated.

Thanks,

Hi,

There are a few reasons why you may be getting this error when you are trying to import your firebase modules.
One of these reasons can be that you are trying to import these modules within a public page. Make sure you are importing these modules to a backend file. For more information on setting up this web module, click here .

If this is not the case and you already have followed the steps in the link provided, please send us a link to your website so we can take a look at what could be causing the issue a bit deeper.

Best Regards,
Edward