Read the statement by Michael Teeuw here.
Error on loading script "...//MMM-name.js"
-
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-TeslaLoggerNow 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
-
@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:{ } },
-
@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