angular / angularfire

Angular + Firebase = ❤️
https://firebaseopensource.com/projects/angular/angularfire2
MIT License
7.66k stars 2.19k forks source link

[Analytics] Support lazy module without declarations field #2337

Closed GrandSchtroumpf closed 3 years ago

GrandSchtroumpf commented 4 years ago

Version info

Angular: 9.0.1 Firebase: 7.. AngularFire: 6.0.0-rc1

How to reproduce these conditions

Debug output

Cannot read annotations of undefined

How to solve

Modify this line :

const selectors = [].concat.apply([], declarations.map(...))

Becomes :

const selectors = [].concat.apply([], (declarations || []).map(...))
jamesdaniels commented 4 years ago

Thanks for the report! I'll turn a fix around quickly.