auto-booting but no modules (no warning with config file)
So I turned off my mirror last night as per usual and turned it back on this morning to find that the modules aren’t loading, I don’t have a notification saying that I had an error with the config.js folder, the thing autoboots then shows absolutely nothing, I am running the latest version, I ran npm audit which showed 7 low, 1 medium, 1 high, so I ran npm audit fix, now I only have 5 low… but it still isn’t working… Any suggestions where to look or what to potentially do that doesn’t involve starting again??
@will23110 from the console of your pi, or over ssh, run
npm start dev
from the MagicMirror folder
open the console tab, and look for errors, red text
usually when a module crashes, the mirror will go black
so I’ve run that and in the top right corner it says 3 errors and 2 warnings, I just don’t understand why it would do this overnight, it was working perfectly last night
@will23110 select the console tab to scroll the list
no idea, something changed
yeah, shame though I’d only just perfected it ahah, so the three errors are
- Uncaught SyntaxError: Invalid or unexpected token (translator.js:1)
- Uncaught SyntaxError: Invalid or unexpected token (loader.js:1
- Uncaught ReferenceError: Translator is not defined (misn.js:452)
at Object.init (main.js:425)
and then a couple of security warning that I can probably (hopefully) fix.
Uncaught SyntaxError: Invalid or unexpected token (translator.js:1)
Uncaught SyntaxError: Invalid or unexpected token (loader.js:1
so, I would use some editor to look at these two files in
line 1 of each is a comment (/* */)
maybe there was an error on the memory card when u rebooted…
Uncaught ReferenceError: Translator is not defined (misn.js:452)
this error is because of the prior error on the translator.js file
so I’ve got translator.js open, it says at the top
/* global config, vendor, MM, Module */ /* MagicMirror * Module and file loaders. * Etc...
should it be
/* global config, vendor, MM, Module */ /* MagicMirror*/ /* Module and file loaders.*/ /* Etc...
but in the repository for MagicMirror on github its the same, how do I quickly check for differences instead of having to go through the entire thing and comparing to another file
@will23110 no, 1st is ok
@will23110 compare, i do not know