Can't use angular AOT because of angularfire typescript error
See original GitHub issueVersion 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:
- Created 6 years ago
- Comments:14 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@davideast It Only appear with
--aot=true --t=production
On zone.js I think. But angularfire2 was the only package that I’ve updated.Still failing in rc.6.0-next
Uncaught TypeError: Cannot read property 'apply' of undefined