Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. console.log Hinweis

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    console.log Hinweis

    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      arniworx last edited by

      hi! seit neuestem wird mir in den scripts bei "console.log(..." das ".log" rot unterkringelt.
      mit dem hinweis "Property 'log' does not exist on type 'typeof console'"
      hat das noch jemand beobachet? kann man was tun?
      ioBroker admin v6.12.8, javascript adapter v7.4.0 - ja, ich weiss, ist beta
      gruß
      arni

      T H 2 Replies Last reply Reply Quote 1
      • T
        ticaki Developer @arniworx last edited by ticaki

        @arniworx

        der "richtige" Befehl für die Logausgabe im Scriptadapter ist log() 🙂 Vielleicht ist das unterstreichen ein netter Schubser um console.log() nicht zu nutzen, oder ein Bug.

        1 Reply Last reply Reply Quote 1
        • H
          Heidi02 @arniworx last edited by Heidi02

          @arniworx
          Ja, das stößt mir auch seit ein paar Tagen auf. Kann gar nicht sagen seit wann das so ist. Es ist aber auf jeden Fall neu.
          Javascript Adapter 7.1.6

          console.info wirft sogar eine Fehlermeldung "TypeError: console.info is not a function". Wo .info doch angeblich ein Alias für .log ist (laut nodejs Doku). Dazu kann ich aber nichts weiter sagen, da ich das vorher nie benutzt habe. Bin nur durch das console.log-Problem darauf aufmerksam geworden.

          @ticaki
          Tatsächlich, log(). Ist mir durch Deinen Hinweis erst aufgefallen. Huch!
          Früher war console.log jedoch unauffällig.

          arteck 1 Reply Last reply Reply Quote 0
          • arteck
            arteck Developer Most Active @Heidi02 last edited by

            @heidi02 gesehen ?
            287f60b4-cde8-4b07-9fef-50122730f4a0-grafik.png

            H 1 Reply Last reply Reply Quote 1
            • haus-automatisierung
              haus-automatisierung Developer Most Active last edited by

              FYI https://github.com/ioBroker/ioBroker.javascript/issues/1462

              ETGermany created this issue in ioBroker/ioBroker.javascript

              closed console.log >>> Property 'log' does not exist on type 'Console'.(2339) #1462

              1 Reply Last reply Reply Quote 1
              • H
                Heidi02 @arteck last edited by

                @arteck said in console.log Hinweis:

                @heidi02 gesehen ?
                287f60b4-cde8-4b07-9fef-50122730f4a0-grafik.png

                Ja, habe ich.
                Bin mir (relativ) sicher, daß das console.log() da früher mit aufgelistet war. Zumindest wurde es früher nicht vom Compiler reklamiert. Wenn ich heute ältere Scripte öffne, haben die öfter diese häßlichen roten Kästchen als Fehlermarkierung am rechten Bildrand. So hätte ich die nie abgespeichert.
                Aber was soll das ganze Lamentieren. Wenn log() der offiziell vorgegebene Weg ist muss ich mich halt umgewöhnen, auch wenn das den Fingern beim Tippen schwerfallen wird.

                haus-automatisierung 1 Reply Last reply Reply Quote 0
                • haus-automatisierung
                  haus-automatisierung Developer Most Active @Heidi02 last edited by

                  @heidi02 Hab da heute einiges verbessert. Neue Version kommt. Dann sollten alle Kombinationen funktionieren. Aktuell ist es ja nur im Editor ein Problem, der Code läuft ja einwandfrei

                  H 1 Reply Last reply Reply Quote 2
                  • H
                    Heidi02 @haus-automatisierung last edited by

                    @haus-automatisierung
                    Vielen Dank, daß Du Dich der Sache so schnell angenommen hast! 🤝
                    Noch dazu, wo es ja eigentlich eher ein kosmetisches Problem ist. Wie Du sagst, der Code funktioniert ja.

                    haus-automatisierung 1 Reply Last reply Reply Quote 0
                    • haus-automatisierung
                      haus-automatisierung Developer Most Active @Heidi02 last edited by

                      @heidi02 Gab einige Issues zu Typings. Daher habe ich das mit 3 oder 4 anderen gefixt um das (hoffentlich) endlich mal gerade zu ziehen.

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post

                      Support us

                      ioBroker
                      Community Adapters
                      Donate

                      981
                      Online

                      31.7k
                      Users

                      79.8k
                      Topics

                      1.3m
                      Posts

                      5
                      9
                      1209
                      Loading More Posts
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes
                      Reply
                      • Reply as topic
                      Log in to reply
                      Community
                      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                      The ioBroker Community 2014-2023
                      logo