Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. Anfängerfrage [gelöst]

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    Anfängerfrage [gelöst]

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

      Ich möchte ein Testscript in der Script Umgebung erstellen und scheitere an einem grundlegenden Problem beim Einsatz von zusätzlichen Modulen:

      Die Zeile
      const axios = require('axios');
      liefert die Meldung: Cannot find module 'axios' or its corresponding type declarations.(2307)

      Dabei habe ich axios als zusätzliches Modul im Adapter genannt.

      Was habe ich da falsch gemacht?
      axios ist installiert.
      Ein npm ls axios liefert:

      iobroker.javascript@6.0.3 /opt/iobroker/node_modules/iobroker.javascript
      └── axios@1.1.2

      Vielen Dank für eine Anregung

      Uwe

      liv-in-sky 1 Reply Last reply Reply Quote 0
      • liv-in-sky
        liv-in-sky @Uwe1958 last edited by

        @uwe1958

        du hast nix falsch gemacht - einfach darüber wegsehen

        Uwe1958 1 Reply Last reply Reply Quote 1
        • Uwe1958
          Uwe1958 Developer @liv-in-sky last edited by

          @liv-in-sky

          Wirklich so einfach?

          Scheint aber zu funktionieren!

          Vielen Dank

          Uwe

          liv-in-sky 1 Reply Last reply Reply Quote 0
          • liv-in-sky
            liv-in-sky @Uwe1958 last edited by liv-in-sky

            @uwe1958 ja - schätze die info wird erst bei kompilieren richtig gelesen

            falls es dich stört:

            script-vis1.gif

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

            Support us

            ioBroker
            Community Adapters
            Donate

            897
            Online

            31.9k
            Users

            80.2k
            Topics

            1.3m
            Posts

            2
            4
            353
            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