facebook

Optional chaining operator is marked as error on ts files.

  1. CodeMix & Angular IDE
  2.  > 
  3. Getting Help
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #650293 Reply

    beleta1
    Participant

    Angular 9 uses TypeScript 3.8.3 that allows optional chaining operator foo?boo.

    This operator is allowed in templates but is flagged as an erro in TypeScript files.

    Could you fix it, or explain a way to fix the problem. I don’t know where the problem is, TSlint, Angular Language Services, Codemix engine, …

    Any help would be appreciated.

    Jose M Beleta

    #650297 Reply

    support-swapna
    Moderator

    Jose,

    You need to install the Typescript@next extension to remove the errors on ‘?’.
    I assume you are working with the latest CodeMix release CI 2020.3.3. If no, then please go to Help > Check for Updates and once you updated to the latest release, please install the extension as suggested in this thread : https://www.genuitec.com/forums/topic/support-for-optional-chaining-with-typescript-in-the-editor/

    Hope this helps. Please let us know how it works for you.

    –Swapna
    Genuitec Support

    #650368 Reply

    beleta1
    Participant

    Thank you for your fast response. Yes, it works.

    Jose

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Optional chaining operator is marked as error on ts files.

You must be logged in to post in the forum log in