Read the statement by Michael Teeuw here.
[ERROR] _ is not defined
-
@nowayto wow!!! NOW i am really confused.
have you rebooted?
if you try the sample config.js
cd ~/MagicMirror/config mv config.js config.js.save cp config.js.sample config.js
and then
npm startdoes it run or fail
-
@sdetweil
Sam… I don’t know how to saying it.
I figure out the issue.After your last message I tried what you suggest.
With the default cfg I had no errors, with mine I had errors.So I checked again and again the config…
and I find an underscore _ right at the start of the confignpm config:check told me “no syntax errors” and that confusing me.
When I edit it I use nano editor
I do “sudo nano config.js” and I press CTRL + _ to jump at the 250 line.
Might be one of the latest time I opened it and press _ a bit faster than CTRL and I add it for error.In addition I notice that when I open config.js with nano editor the green cursor is, clearly, at the start of the first line… EXACTLY on the undescore _ and it hides it.
I’m really sorry for bothering you with that.
How can I buy you a coffee ?
Thanks -
@nowayto no coffee needed, we found it!!!
please NEVER use sudo inside MagicMirror folder
no reason to use super user , just makes trouble laterso if you fix the config.js in the saved MagicMirror folder then it should run ok too!!!"
ill see what we can do about the misleading message… thanks for your energy here!!!
-
@nowayto i use ctrl-end on my keyboard for nano to get to end of file
haven’t found a way to do that on my chromebook, drives me crazy!!!
-
@nowayto ok, I’ve found the error producer
and I’ll propose a fix…I think this might have been more useful lol
[ERROR] fatal error in /home/sam/MagicMirror/config/config.js at line 19 column 1, _ is not defined
I opened
https://github.com/MagicMirrorOrg/MagicMirror/issues/3785for this issue
-
@sdetweil Ok but I wanna just offer a coffe for your kind and your time spent with that.
Do you suggest me to fix the old magic mirror folder or just rm it?
-
@nowayto if you have everything working, you can rm it
i was just saying you could prove this change would fix the prior install
i do this for fun, really! pay it forward, help someone else on whatever when you can.
-
-
@rkorell I meet the most amazing people, with the most amazing ideas… and I get to help them?!
what more can you ask for?!
-
-
@rkorell Again, thank you Sam.
I know what you mean, I usually act as you said.
I like to help other, in the subject where I have knowledge.
So, thank you again