MagicMirror² v2.11.0 is available! For more information about this release, check out this topic.
READ THE CHANGELOG BEFORE UPDATING!

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


  • Project Sponsor

    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


  • Project Sponsor

    @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
    


  • @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:{
    
    			}
    		},
    

  • Project Sponsor

    @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
    

Log in to reply