MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    How to get Nullish coalescing operator working in a module?

    Scheduled Pinned Locked Moved Requests
    2 Posts 2 Posters 273 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W Offline
      winstonma
      last edited by winstonma

      My module would import other people’s code, which include Nullish coalescing operator. When I run the code it gives me error.

      I would like to know how could I add Nullish coalescing operator support, which is in Typescript 3.7?

      Thanks in advnace

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @winstonma
        last edited by

        @winstonma according to the spec, u need node version 14 or above
        https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_operator

        and some work by the browser, altho I can’t find any info on electron support

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Enjoying MagicMirror? Please consider a donation!
        MagicMirror created by Michael Teeuw.
        Forum managed by Sam, technical setup by Karsten.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy