-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Compilation fails with TypeScript 2.4.x #12233
Comments
This is caused by |
PR #12235 fixes this by explicitly typing the promise. |
Hello @RoopeHakulinen , thanks for using Ionic and thanks for the PR! We will look into getting this merged. |
add this to tsconfig.json temporarily until the issue is fixed:
|
It works because in TS 2.4 there was an addition to the compiler that improves generics checking. In this case it relates to checking the generic |
Would love to see this PR merged soon! tslint is causing a load of erroneous warnings with ts 2.3.4 due to this issue. |
@RoopeHakulinen is it save to use TS 2.4.2 on [email protected], we have som libs which requires >2.4 but I saw ionic is for example reverting TS from 2.5.x back again to 2.3.4 so it seems > 2.3.4 should not work properly? |
I haven't had a chance to update yet myself so unfortunately can't tell you that :( @jgw96 probably knows |
it still does not work for me what I have to do!! |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Ionic version: (check one with "x")
[ ] 1.x (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[x] 3.x
I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
App does not compile with TypeScript 2.4.x since
Expected behavior:
Steps to reproduce:
Related code:
Other information:
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):The text was updated successfully, but these errors were encountered: