Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.15.0 is available! For more information about this release, check out this topic.

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

    Troubleshooting
    2
    3
    99
    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.
    • spitzlbergerj
      spitzlbergerj Project Sponsor 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

      S 1 Reply Last reply Reply Quote 0
      • spitzlbergerj
        spitzlbergerj Project Sponsor 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
        
        1 Reply Last reply Reply Quote 1
        • S
          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:{
          
          			}
          		},
          
          1 Reply Last reply Reply Quote 0
          • spitzlbergerj
            spitzlbergerj Project Sponsor 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
            
            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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy