Read the statement by Michael Teeuw here.
Can't find out what I did wrong in my config.js...
-
Perhaps this is a start, provided I copy/pasted it right ?
Although I think you are familiar with this and used other linters to find the ‘mistake’.pi@MagicPi:~/MagicMirror $ cd ~/MagicMirror; npm run config:check
Checking file... /home/pi/MagicMirror/config/config.js Line 213 col 42 Missing semicolon. Line 218 col 18 Missing semicolon. Line 222 col 5 Expected '}' to match '{' from line 190 and instead saw '{'. Line 223 col 7 Expected ']' to match '[' from line 28 and instead saw 'module'. Line 223 col 13 Expected '}' to match '{' from line 11 and instead saw ':'. Line 223 col 14 Missing semicolon. Line 224 col 7 Expected an assignment or function call and instead saw an expression. Line 224 col 15 Missing semicolon. Line 224 col 7 Unrecoverable syntax error. (94% scanned).
I think you missed a } around line 220.
The “Missing semicolon” messages normally are just nitpicking, but the "Expected ‘}’ to match ‘{’ " are usually true.
-
@evroom thanks for the help I give it immediately a look. :)
Also didn’t know that terminal command.
-
@evroom found out the mistake thanks to your suggestion:
I missed to add an additional close curly bracket after line 213!
-
Glad to help.
So many errors after only one mistake (the most common to make; we all did it sometime I guess) :slightly_smiling_face: -
@evroom lol indeed! :grinning_face_with_smiling_eyes:
-
Wait, you can audit the config file right from NPM?
Daaaaaaaaaaaaaaaaaaaang.