-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AngularFire 7.2 doesn't compile with latest Angular 13.1 and Typescript 4.5 #3090
Comments
This issue does not seem to follow the issue template. Make sure you provide all the required information. |
I'm also having the same problem: Version infoAngular: Firebase: AngularFire: Other (e.g. Ionic/Cordova, Node, browser, operating system): How to reproduce these conditionsFailing test unit, Stackblitz demonstrating the problem N/A Upgrade to Typescript 4.5.3, Angular 13.1.1, AngularFire 7.0.4 Sample data and security rules N/a Debug output** Errors in the JavaScript console ** Error: node_modules/@angular/fire/compat/proxy.d.ts:7:49 - error TS2344: Type 'T[K]' does not satisfy the constraint '(...args: any) => any'. 7 [K in FunctionPropertyNames]: ReturnType<T[K]> extends Promise ? K : never; ** Output from ** Screenshots ** Expected behaviorAngular app compiles without any problems. Actual behaviorAngular App no longer compiles |
A temporary fix for this is to revert typescript back to 4.4.4:
|
Same problem here! |
Same problem |
i am having the same issue. Any assistance would be much appreciated |
Same issue with the following |
Same issue with the following: |
Set |
|
Thanks @jamesdaniels !! |
|
Can confirm the issue with : |
Add this 2 lines inside compilerOptions in your tsconfig.json "skipDefaultLibCheck": true, |
fix error "Type 'T[K]' does not satisfy the constraint '(...args: any) => any'" open issue at github firebase angular/angularfire#3090
Thanks |
Workaround for angular/angularfire#3090
* Update dependency typescript to v4.5.5 * Update compiler options Workaround for angular/angularfire#3090 Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Chris Keller <xylo04@gmail.com>
I put "skipLibCheck": true inside compilerOptions in the tsconfig.json file and it works for me for now |
Al principo no me funcinaba porque estaba corriendo el ng build, ahi seguia el error; pero con ng serve la corre normal |
Updating typescript to v4.5.5 does not work, skipLibCheck : true worked for me |
Same here, thank you @ProtoScott |
same problem here! |
Cutting 7.2.1 with the fix now |
Update Angular & Typescript to latest (13.1.0 and 4.5.3) =>
ng serve
errors in the terminal:Error: node_modules/@angular/fire/compat/proxy.d.ts:7:49 - error TS2344: Type 'T[K]' does not satisfy the constraint '(...args: any) => any'.
Caused by this file: https://github.com/angular/angularfire/blob/master/src/compat/proxy.ts
Latest version of Typescript (4.5.3) doesn't like T[K].
The text was updated successfully, but these errors were encountered: