ERROR: ...Cannot find module 'firebase/app'

5,050 views
Skip to first unread message

vytautas stonys

unread,
Nov 4, 2018, 4:04:49 PM11/4/18
to Firebase Google Group
ERROR in node_modules/@angular/fire/auth/auth.d.ts(4,28): error TS2307: Cannot find module 'firebase/app'.
node_modules/@angular/fire/firebase.app.module.d.ts(2,79): error TS2307: Cannot find module 'firebase/app'.
node_modules/@angular/fire/firestore/collection/collection.d.ts(2,27): error TS2307: Cannot find module 'firebase/app'.
node_modules/@angular/fire/firestore/document/document.d.ts(5,27): error TS2307: Cannot find module 'firebase/app'.
node_modules/@angular/fire/firestore/firestore.d.ts(7,27): error TS2307: Cannot find module 'firebase/app'.
node_modules/@angular/fire/firestore/interfaces.d.ts(2,27): error TS2307: Cannot find module 'firebase/app'.
src/app/news/news.component.ts(6,23): error TS2307: Cannot find module 'codelyzer/util/syntaxKind'.

I am getting compilation error as shown  above. Where could be a problem?

"firebase": "^5.5.7",
"@angular/fire": "^5.1.0",

Vadim Polyakov

unread,
Nov 8, 2018, 9:51:02 AM11/8/18
to Firebase Google Group
I am getting the same error for those versions for firebase and @angular/fire.  Any pointers would be appreciated.

Thanks.

Kato Richardson

unread,
Nov 9, 2018, 11:20:56 AM11/9/18
to fireba...@googlegroups.com
Hi Vadim,

Seems likely that this is going to be a setup error, given that I don't see anything similar on the issue tracker

Can you reproduce this with vanilla javascript and no Angular? That would help isolate the failure point. For example, just trying the following:
  
import firebase from 'firebase/app';
import 'firebase/auth';
console.log('imported successfully');

And assuming that fails, could you try to reproduce with 5.5.6?

☼, Kato

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/8a6635ec-af19-4256-ad42-10684ae5a59f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Reply all
Reply to author
Forward
0 new messages