Read the statement by Michael Teeuw here.
Config error
-
@justjim1220 thanks didn’t know about that. :)
Will run it as soon as I get home.
-
You have to be in the MM directory, FWIW.
I have a script set up in my root directory:
cd ~/MagicMirror
npm run config:check
cd ~ -
@bkeyport I know it. 😜
-
@justjim1220 the command stopped already at line 8 so I couldn’t find out where the error was.
pi@raspberrypi:~/MagicMirror $ npm run config:check > magicmirror@2.6.0 config:check /home/pi/MagicMirror > node tests/configs/check_config.js Checking file... /home/pi/MagicMirror/config/config.js Line 1 col 2 Expected an assignment or function call and instead saw an expression. Line 1 col 7 Missing semicolon. Line 1 col 8 Expected an assignment or function call and instead saw an expression. Line 1 col 14 Missing semicolon. Line 1 col 15 Expected an assignment or function call and instead saw an expression. Line 1 col 21 Missing semicolon. Line 2 col 2 Misleading line break before '*'; readers may interpret this as an expression boundary. Line 3 col 2 Expected an identifier and instead saw '*'. Line 3 col 2 Expected an assignment or function call and instead saw an expression. Line 3 col 3 Missing semicolon. Line 3 col 4 Expected an assignment or function call and instead saw an expression. Line 3 col 6 Missing semicolon. Line 3 col 7 Expected an assignment or function call and instead saw an expression. Line 3 col 14 Missing semicolon. Line 3 col 15 Expected an assignment or function call and instead saw an expression. Line 3 col 20 Missing semicolon. Line 4 col 2 Label 'http' on * statement. Line 4 col 2 Expected an identifier and instead saw '*'. Line 4 col 2 Expected an assignment or function call and instead saw an expression. Line 4 col 3 Missing semicolon. Line 4 col 4 Expected an assignment or function call and instead saw an expression. Line 4 col 7 Missing semicolon. Line 5 col 2 Expected an identifier and instead saw '*'. Line 5 col 2 Expected an assignment or function call and instead saw an expression. Line 5 col 3 Missing semicolon. Line 6 col 2 Expected an identifier and instead saw '*'. Line 6 col 2 Expected an assignment or function call and instead saw an expression. Line 6 col 3 Missing semicolon. Line 6 col 4 Expected an assignment or function call and instead saw an expression. Line 6 col 7 Missing semicolon. Line 6 col 8 Expected an assignment or function call and instead saw an expression. Line 6 col 12 Missing semicolon. Line 6 col 13 Expected an assignment or function call and instead saw an expression. Line 6 col 24 Missing semicolon. Line 6 col 25 Expected an assignment or function call and instead saw an expression. Line 6 col 28 Missing semicolon. Line 6 col 29 Expected an assignment or function call and instead saw an expression. Line 6 col 32 Missing semicolon. Line 6 col 33 Expected an assignment or function call and instead saw an expression. Line 6 col 36 Missing semicolon. Line 6 col 37 Expected an assignment or function call and instead saw an expression. Line 6 col 48 Missing semicolon. Line 6 col 49 Expected an assignment or function call and instead saw an expression. Line 6 col 53 Missing semicolon. Line 7 col 2 Misleading line break before '*'; readers may interpret this as an expression boundary. Line 7 col 4 Expected an assignment or function call and instead saw an expression. Line 7 col 7 Missing semicolon. Line 8 col 2 Label 'https' on * statement. Line 9 col 2 Unbegun comment. Line 8 col 2 Expected an identifier and instead saw '*'. Line 8 col 2 Too many errors. (1% scanned). -
line 1 needs a /* at the very top left
the output you posted tells you where to look for the errors
-
looks like the missing /* is causing all the rest of the error, fix that one and you should be good to go.
-
@justjim1220 good catch there thanks, but unfortunately I still get the config error. :disappointed_face:
-
@justjim1220 sorry didn’t read properly your suggestion and missed that forward slash! :smiling_face:
Everything is sorted now thanks again!
-
@cr4z33 glad to hear and you are fery welcome! :smiling_face_with_sunglasses:
-
@cr4z33 - I’m glad you got it figured out. Don’t forget to mark the topic as solved!
-
This site was helpful for me. As with everything MagicMirror everyone contributes to help everyone. Just erase the code on this page and copy and paste your code to see where your errors are. Works great for me. https://jshint.com/
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