angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

Won't build with Angular 10

Open shadow1349 opened this issue 6 years ago • 21 comments

When I try to build or run my project it won't do either. It says that ModuleWithProviders<T> requires 1 type argument (screenshot attached below).

Version info

Angular: 10.0.1

Firebase: 7.15.1

AngularFire: 6.0.2

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

How to reproduce these conditions

Create an Angular 10 project (with @angular/core version 10.0.1). Add @angular/fire libary. Try to build.

Expected behavior

I should be able to build and run the project.

Actual behavior

Screenshot from 2020-06-26 23-42-45

shadow1349 avatar Jun 27 '20 04:06 shadow1349

I tried downgrading to 10.0.0 and I got the same behavior.

shadow1349 avatar Jun 27 '20 04:06 shadow1349

You may want to check this link . It seems to me like support is only offered up to 8, but I could be wrong.

MC-Mihai avatar Jun 27 '20 09:06 MC-Mihai

@Mihai-MCW according to their changelog, 6.0.2 should work on angular 10 https://github.com/angular/angularfire/blob/master/CHANGELOG.md

shadow1349 avatar Jun 28 '20 04:06 shadow1349

+1

fritzschoff avatar Jun 29 '20 13:06 fritzschoff

I made a PR for this #2527

yasinkocak avatar Jun 29 '20 14:06 yasinkocak

@yasinkocak thank you!

shadow1349 avatar Jun 30 '20 15:06 shadow1349

I have the same problem. Can I just copy paste this here firestore.module.d.ts:7:74 - error TS2314: Generic type 'ModuleWithProviders' requires 1 type argument(s). because this is how I googled for the issue and didn't get any results

doivosevic avatar Jul 01 '20 11:07 doivosevic

Hello angularFire team. I literally spend a ton of money in your app for my clients. At least answer us. It’s a shame that core features are broken. It’s a shame you don’t manage the PR. At least give us back the projets lead and we can manage it like a TRUE open source project.

BianchiSeb avatar Jul 05 '20 17:07 BianchiSeb

set enableIvy to true in tsconfig and tsconfig.app

kaptain-ti avatar Jul 16 '20 03:07 kaptain-ti

@kaptain-ti I had to turn that off because I was using a custom decorator which is not supported by Ivy yet. If that issue is fixed in angular 10 then I will be able to turn ivy back on

shadow1349 avatar Jul 17 '20 21:07 shadow1349

Fix is already merged to master, but not released. Can you release new version? Due this issue I cannot update my library to Angular 10...

vtregner-cen29414 avatar Jul 29 '20 08:07 vtregner-cen29414

Wow, over 1 month for a type fix

doivosevic avatar Jul 29 '20 13:07 doivosevic

@vtregner you can install the canary version npm i @angular/fire@canary that has the fix in and is fully working.

shadow1349 avatar Jul 30 '20 14:07 shadow1349

I have the same problem, any update?

hlpupo avatar Aug 21 '20 04:08 hlpupo

@hlpupo like @shadow1349 suggested, use the canary version. npm i @angular/fire@canary

fritzschoff avatar Aug 21 '20 07:08 fritzschoff

Is there an estimated date for releasing 6.0.3?

Fix is already merged to master, but not released. Can you release new version? Due this issue I cannot update my library to Angular 10...

djabif avatar Sep 17 '20 17:09 djabif

The fix for this was merged over 2 months ago, what's the hold up on releasing? I would rather not have production code relying on a canary version.

taylormills avatar Sep 23 '20 09:09 taylormills

@davideast @jeffbcross can we in any way help speed up the process in general? I would really like to help blockers like these go into production code sooner. Angular 11 is around the corner and we still cannot build all stable libraries with 10

doivosevic avatar Sep 23 '20 10:09 doivosevic

It seems the project is dead. Unbelievable ignorance.

vtregner-cen29414 avatar Sep 23 '20 10:09 vtregner-cen29414

With the fix for https://github.com/angular/angularfire/issues/2505 getting into the latest Canary, it looks like (based on https://github.com/angular/angularfire/issues/2505#issuecomment-698097239) that a 6.0.3 release is coming very soon.

Splaktar avatar Sep 24 '20 22:09 Splaktar