Read the statement by Michael Teeuw here.
Testing my module, it is stuck loading
-
@l0zarus magicmirror… of course
-
@sdetweil well my module isn’t even in the modules folder even though it is in the config file which is confusing to me. I noticed in your screenshot that default is a subfolder of modules. That is true in my path to the module, but they are appearing as one combined folder. I’m not sure why that is the case. In any event, clearly my module was never actually loading at all. Any idea what the issue is here? I’ll start to update my code to remove the API call from the getDom function.
-
@l0zarus AH, now we’re getting somewhere
go to the console tab and put part of your module name in the filter field
also,
modulename in config.js = folder name in modules folder = filename of the .js file
AND the register nameconfig.js module:"SampleModule", modules/SampleModule/SampleModule.js Module.register("SampleModule", {
ALL these MUST match else your module is not loaded
system is case sensitive -
@sdetweil Alright I have a few errors showing, and I’m having an issue moving my file to the modules folder. I have verified the name is the same across the folder, the js file, and the config file.
First, I got the following message when trying to move it:
mv MMM-ConcertsAroundMe /modules mv: cannot move 'MMM-ConcertsAroundMe' to '/modules': Permission denied
Will paste the console errors as well, I am moving between my mac and raspberry pi
-
@l0zarus its not /modules (that is in the root)
depending where your module is , the quick way
mv MMM-ConcertsAroundMe ~/MagicMirror/modules
-
@sdetweil aha! I had tried that as well, but I did not include the ~. I am learning so much from this project :)
-
@l0zarus said in Testing my module, it is stuck loading:
I am moving between my mac and raspberry pi
magicmirror will run on your mac…
use my install script
-
@l0zarus ~ means users home folder (less letters to type, remember most of this linux console stuff was created on slow 300bps phone lines… the fewer letters the better)
-
@sdetweil alright here are the errors:
-
@l0zarus did yiu npm install luxon in your module folder
npm init -y npm install luxon
if u don’t do the npm init in your module folder the module will be installed in the root MM node_modules, then not found here