You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ivy-ngcc is unable to recognise AngularFireModule.initializeApp as ModuleWithProviders #29078
ivy-ngcc cannot recognise the AngularFireModule.initializeApp and mark it as ModuleWithProviders.
This is because the current implementation of ivy-ngcc which looks for ts.ClassDeclaration. Instead, the code above is a variable assignment to ts.BinaryExpression which includes ts.ClassExpression.
There are 2 solutions to this issue:
Make ivy-ngcc to able to recognise class declaration like this.
Tell library authors to use angularCompilerOptions.annotationsAs as static fields during packaging.
For future search reference, the symptom I'm seeing that I believe is caused by this is the error: Error: Value at position 4 in imports array is not a reference: [object Object] with position depending on where you have the ModuleWithProviders in the import array.
Reacted by Joost Koehoorn, Sarun Intaralawan and Naveed Ahmed
Activity
StephenFluin commentedon Mar 3, 2019
For future search reference, the symptom I'm seeing that I believe is caused by this is the error:
Error: Value at position 4 in imports array is not a reference: [object Object]with position depending on where you have theModuleWithProvidersin the import array.sarunint commentedon Mar 3, 2019
@StephenFluin That's the exact error message that makes me go through debugging the
ivy-ngcc.By the way, what's the intended solution for this: fix
ivy-ngccor fix the library?petebacondarwin commentedon Mar 4, 2019
The fix needs to be in the ngcc tool.
fix(ivy): ngcc - properly handle aliases class expressions
fix(ivy): ngcc - properly handle aliases class expressions (angular#2…
angular-automatic-lock-bot commentedon Sep 14, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.