Skip to content

Support TypeScript 3.7 #33596

Closed
Closed

Description

@fr0

🚀 feature request

Relevant Package

This feature request is for @angular/core

Description

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.

Activity

  1. gkalpak commented on Nov 5, 2019

    @gkalpak
    Member

    Related PR: #32962

  2. added this to the needsTriage milestone on Nov 5, 2019
  3. added
    featureLabel used to distinguish feature request from other issues
    on Nov 5, 2019
  4. modified the milestones: needsTriage, Backlog on Nov 5, 2019
  5. filipesilva commented on Nov 6, 2019

    @filipesilva
    Contributor

    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:

    {
      // ...
      "angularCompilerOptions": {
        // ...
        "disableTypeScriptVersionCheck": true
      }
    }
    
  6. gligoran commented on Nov 7, 2019

    @gligoran

    Any possibility this will be ready for the release of Angular 9?

  7. filipesilva commented on Nov 7, 2019

    @filipesilva
    Contributor

    Current thinking at the moment is within version 9, but after 9.0 proper.

  8. xiaoxiangmoe commented on Nov 7, 2019

    @xiaoxiangmoe

    @filipesilva Will Angular 8 support ts 3.7 in the future?

  9. filipesilva commented on Nov 7, 2019

    @filipesilva
    Contributor

    @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.

  10. xiaoxiangmoe commented on Nov 22, 2019

    @xiaoxiangmoe

    Can we open useDefineForClassFields in Angular 9? @filipesilva

  11. filipesilva commented on Nov 22, 2019

    @filipesilva
    Contributor

    You can try, but that looks like it might cause some trouble... if you run into problems please let us know.

  12. alan-agius4 commented on Jan 16, 2020

    @alan-agius4
    Contributor

    Closing as Angular v9.0.0-rc.9 supports TypeScript version 3.7.

  13. filipesilva commented on Jan 16, 2020

    @filipesilva
    Contributor

    Support was added in #33717

  14. filipesilva commented on Jan 22, 2020

    @filipesilva
    Contributor

    Hey all,

    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.

  15. michaeljota commented on Feb 17, 2020

    @michaeljota

    @xiaoxiangmoe Did useDefineForClassFields work for you? I'm seeing a weird issue, and I think it's because of that.

  16. michaeljota commented on Feb 17, 2020

    @michaeljota

    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.

  17. xiaoxiangmoe commented on Feb 17, 2020

    @xiaoxiangmoe

    @michaeljota Sorry, I haven't tried to turn on this option because we are busy with other things.

  18. angular-automatic-lock-bot commented on Mar 19, 2020

    @angular-automatic-lock-bot

    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.

  19. locked and limited conversation to collaborators on Mar 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreIssues related to the framework runtimefeatureLabel used to distinguish feature request from other issuesfreq2: medium

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions