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.

    Error on loading script "...//MMM-name.js"

    Scheduled Pinned Locked Moved Solved Troubleshooting
    3 Posts 2 Posters 556 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.
    • spitzlbergerjS Offline
      spitzlbergerj Project Sponsor Module Developer
      last edited by

      Hi,

      I have developed a new module. Everything works wonderfully on my mirror. I uploaded the module to github and offered it there:
      https://github.com/spitzlbergerj/MMM-TeslaLogger

      Now others have loaded the module via git clone and got an error:

      loader.js cannot load /modules/MMM-TeslaLogger//MMM-TeslaLogger.js
      

      I can reproduce the error after a git clone on my mirror too. But I cannot find where the second “/” has crept in.

      What could be the reason for this?

      thanks a lot

      Josef

      Regards
      Josef

      http://www.spitzlberger.de/smartmirror, https://github.com/spitzlbergerj/MMM-TeslaLogger, https://github.com/spitzlbergerj/CaravanPi, https://www.la-gondola-barocca.de

      S 1 Reply Last reply Reply Quote 0
      • spitzlbergerjS Offline
        spitzlbergerj Project Sponsor Module Developer
        last edited by spitzlbergerj

        @sdetweil many thanks!

        The wrong spelling was the right track. In the installation instructions I had written:

        git clone https://github.com/spitzlbergerj/MMM-Teslalogger
        cd MMM-Teslalogger
        npm install
        

        But it must be called (capital L)

        git clone https://github.com/spitzlbergerj/MMM-TeslaLogger
        cd MMM-TeslaLogger
        npm install
        

        Regards
        Josef

        http://www.spitzlberger.de/smartmirror, https://github.com/spitzlbergerj/MMM-TeslaLogger, https://github.com/spitzlbergerj/CaravanPi, https://www.la-gondola-barocca.de

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

          @spitzlbergerj it loaded fine for me…

          I had typed the module name wrong in the config.js once. TestlaLogger

          make sure the folder has the exact right name

          the second / is not a problem…MM adds it

          I had put this in my config.js

          		{
          			module:"MMM-TeslaLogger",
          			config:{
          
          			}
          		},
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • spitzlbergerjS Offline
            spitzlbergerj Project Sponsor Module Developer
            last edited by spitzlbergerj

            @sdetweil many thanks!

            The wrong spelling was the right track. In the installation instructions I had written:

            git clone https://github.com/spitzlbergerj/MMM-Teslalogger
            cd MMM-Teslalogger
            npm install
            

            But it must be called (capital L)

            git clone https://github.com/spitzlbergerj/MMM-TeslaLogger
            cd MMM-TeslaLogger
            npm install
            

            Regards
            Josef

            http://www.spitzlberger.de/smartmirror, https://github.com/spitzlbergerj/MMM-TeslaLogger, https://github.com/spitzlbergerj/CaravanPi, https://www.la-gondola-barocca.de

            1 Reply Last reply Reply Quote 1
            • 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