You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeScript 3.7 was released today. It includes plenty of useful new features, like the optional chaining and nullish coalescing operators. Angular should support it.
Reacted by Adam Russell, John, Ryan Lester, matt-senseye, JounQin, Martin, Jesús Garrido Moscoso, Vytautas Vaičys, Naida Zekić, Bryght7 and 119 more
Reacted by Roman Šimík, Julian David, Abraham Schilling, Fábio Miranda, Shunta KARASAWA, Denes Papp, Alex Bjørlig, Quang Van, Florian Westphal, Tamino Hartmann and 1 more
Reacted by Fábio Miranda, Denes Papp, Quang Van, Hasan Beheshti, Florian Westphal and marko164
Reacted by Jesús Garrido Moscoso, pfosser, Naida Zekić, Wilgert Velinga, Rutger van Dijk, Andrey Kudashkin, Alexander Shirobokov, Matt Taube, Asham Sabir, Gary Lockett and 13 more
Reacted by Rutger van Dijk, Andrey Kudashkin, Matthias Kunnen, Matt Taube, Tyler Smith, Hitko Development, Sybren Gjaltema, Asham Sabir, Roman Šimík, Julian David and 8 more
If you're using the framework/CLI RC and Ivy, you might be able to just use TypeScript 3.7 directly. You'll get a peer dependency warning but in all likelihood it'll just work. Ivy is far less sensitive to TypeScript version changed than View Engine. Let me know if you try this and run into problems.
Edit: to disable the ERROR in The Angular Compiler requires TypeScript >=3.6.4 and <3.7.0 but 3.7.2 was found instead. error when building, add the angularCompilerOptions.disableTypeScriptVersionCheck option set to true in tsconfig.json:
@xiaoxiangmoe I'm not aware of plans to backport the changes needed to version 8. Generally only security fixes and very important bugs are fixed in older versions.
Closing as Angular v9.0.0-rc.9 supports TypeScript version 3.7.
Reacted by Gustav Bylund, Michael Kriese, LanderBeeuwsaert, Vitaly Tkachenko, Chris Frolik, JSessink, Matt Taube, Frank Mosca, marko164, borismueller and 1 more
Starting with @angular/cli@9.0.0-rc.10 and @angular/core@9.0.0-rc.9 you should be able to use TypeScript 3.7 with no problems, while 3.6 is also supported. Please let us know if something if you encounter any problems with the TS version.
Reacted by abagmut, Yann Zahringer Ferrando, Robert Huitl, Sylvain Dumont, Frank Neff, marko164, Vaggal, Mark Chris Levy, Javier Marín, Bram Musters and 2 more
Reacted by Marvin Heilemann, marko164, Andrew Rheingans and Bruno Devaux
I'll try to open another ticket with a reproducible repo but it seems like if you use useDefineForClassFields option will throw somehow if you have a service with a property defined but not initialized.
Activity
gkalpak commentedon Nov 5, 2019
Related PR: #32962
filipesilva commentedon Nov 6, 2019
If you're using the framework/CLI RC and Ivy, you might be able to just use TypeScript 3.7 directly. You'll get a peer dependency warning but in all likelihood it'll just work. Ivy is far less sensitive to TypeScript version changed than View Engine. Let me know if you try this and run into problems.
Edit: to disable the
ERROR in The Angular Compiler requires TypeScript >=3.6.4 and <3.7.0 but 3.7.2 was found instead.error when building, add theangularCompilerOptions.disableTypeScriptVersionCheckoption set to true intsconfig.json:gligoran commentedon Nov 7, 2019
Any possibility this will be ready for the release of Angular 9?
filipesilva commentedon Nov 7, 2019
Current thinking at the moment is within version 9, but after 9.0 proper.
xiaoxiangmoe commentedon Nov 7, 2019
@filipesilva Will Angular 8 support ts 3.7 in the future?
filipesilva commentedon Nov 7, 2019
@xiaoxiangmoe I'm not aware of plans to backport the changes needed to version 8. Generally only security fixes and very important bugs are fixed in older versions.
xiaoxiangmoe commentedon Nov 22, 2019
Can we open
useDefineForClassFieldsin Angular 9? @filipesilvafilipesilva commentedon Nov 22, 2019
You can try, but that looks like it might cause some trouble... if you run into problems please let us know.
alan-agius4 commentedon Jan 16, 2020
Closing as Angular
v9.0.0-rc.9supports TypeScript version 3.7.filipesilva commentedon Jan 16, 2020
Support was added in #33717
filipesilva commentedon Jan 22, 2020
Hey all,
Starting with
@angular/cli@9.0.0-rc.10and@angular/core@9.0.0-rc.9you should be able to use TypeScript 3.7 with no problems, while 3.6 is also supported. Please let us know if something if you encounter any problems with the TS version.michaeljota commentedon Feb 17, 2020
@xiaoxiangmoe Did
useDefineForClassFieldswork for you? I'm seeing a weird issue, and I think it's because of that.michaeljota commentedon Feb 17, 2020
I'll try to open another ticket with a reproducible repo but it seems like if you use
useDefineForClassFieldsoption will throw somehow if you have a service with a property defined but not initialized.xiaoxiangmoe commentedon Feb 17, 2020
@michaeljota Sorry, I haven't tried to turn on this option because we are busy with other things.
angular-automatic-lock-bot commentedon Mar 19, 2020
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.