Read the statement by Michael Teeuw here.
auto-booting but no modules (no warning with config file)
-
@will23110 from the console of your pi, or over ssh, run
npm start devfrom the MagicMirror folder
open the console tab, and look for errors, red textusually 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)
at main.js:580
and then a couple of security warning that I can probably (hopefully) fix.
-
@will23110 said in auto-booting but no modules (no warning with config file):
Uncaught SyntaxError: Invalid or unexpected token (translator.js:1)
Uncaught SyntaxError: Invalid or unexpected token (loader.js:1so, I would use some editor to look at these two files in
MagicMirror/js
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
-
Okay, I’ll check through it and correct anything that may be wrong
-
so I had an idea to check through it fast, I copied the loader.js info off of github and paste it into the find (ctrl+f) window, the whole document is highlighted, meaning there are no errors… could it be something else??
-
@will23110 said in auto-booting but no modules (no warning with config file):
Uncaught ReferenceError: Translator is not defined (misn.js:452)
this one bothers me, I can’t find that file anywhere (misn.js), unless that is acut/paste/typo
based on the fact that files look ok, I would suggest doing an fsck (file system check) against the memory card
you will probably have to move it to another system to do that… windows cannot do it
-
how would I go about doing that on a pi?
-
@will23110 a google search says
https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=179361
-
what do you mean by misn.js, I will have a look at that site, thanks
-
@will23110 said in auto-booting but no modules (no warning with config file):
what do you mean by misn.js
the error u posted says
Uncaught ReferenceError: Translator is not defined (misn.js:452)
i see a use of Translator in main.js
but cannot find a misn.js -
oh, typo haha, it’s supposed to say main.js, there are no errors in that one either, sorry about that
-
@will23110 ok
-
wait so from the site you gave me, if I run
sudo touch /forcefsck; sudo rebootwill that break it?
-
@will23110 no, that forces the fsck on next boot, then reboots
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login