question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't use angular AOT because of angularfire typescript error

See original GitHub issue

Version info

Angular: 5.0.3

Firebase: 4.8.0

AngularFire: 5.0.0-rc.4

Other (e.g. Ionic/Cordova, Node, browser, operating system):

Ionic Framework 3.9.2 Node v8.9.3

How to reproduce these conditions

Debug output

Steps to set up and reproduce

Generate an ionic project with angularfire & firebase then run ionic cordova build <ios/android> – prod

I get the following error from AOT compilation:

`typescript error expected 0 arguments but got 2 angularfire.firesotre.index.d.ts ([object Object], ?).

Error: The Angular AoT build failed. See the issues above`

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
wojtek1150commented, Jan 25, 2018

@davideast It Only appear with --aot=true --t=production On zone.js I think. But angularfire2 was the only package that I’ve updated.

image

2reactions
wojtek1150commented, Jan 24, 2018

Still failing in rc.6.0-next Uncaught TypeError: Cannot read property 'apply' of undefined

Read more comments on GitHub >

github_iconTop Results From Across the Web

typescript error cannot find module 'firebase/app'
It seems that firebase 4.8.1 has changed its typescript typings. ... Below are the steps to use firebase into angular project:
Read more >
AOT metadata errors - Angular
Angular generates a class factory in a separate module and that factory can only access exported classes. To correct this error, export the...
Read more >
Error running angular-fire with universal SSR - Google Groups
App gets built successfully and runs without any exceptions when from the root folder. The problem arises when the app is executed outside ......
Read more >
Angular Forms and Validations
If this is your first time using angular reactive forms, this tutorial will help you understand the core concepts and fundamentals of angular...
Read more >
Deployment - Angular
When you are ready to deploy, however, you must use the ng build command to build the app and deploy the build artifacts...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found