Read the statement by Michael Teeuw here.
config,js beginner
-
102 Expected ‘}’ to match ‘{’ from line 90 and instead saw ‘]’.
108 Expected ‘]’ to match ‘[’ from line 28 and instead saw ‘}’.
109 Expected ‘}’ to match ‘{’ from line 11 and instead saw ‘]’.
109 Missing semicolon.
109 Unrecoverable syntax error. (94% scanned).okej, igot this,
we can take 102 dose that mean i just need to swap to }?
109 i have no ide what that translate :S -
@idoodler yeh, i can never tell… some modules use the extra comma , some don’t … looked thru my config and it has one everyplace… doesn’t hurt…
-
@berne on 101 u have ] and then on 102 u have another ]
use a good editor Notepad++ on windows… it will show you the matching ( { and [ with ], } and )
-
Expected '}' to match '{' from line 90 and instead saw ']'.
- Remove the
]
in the line above (Line 101) This will validate your config you can ignore the other warnings.
- Remove the
-
@sdetweil but can i trust https://jshint.com/
and do what it saying to get it right, like 102
just swap ] to }’ on 102i what to learn… but is really hard, i Appreciate you time and @idoodler too
-
@berne I recomend you to to checkout the structure of the existing
config.js
file.You may also check out the W3Schools documentation: https://www.w3schools.com/js/js_objects.asp
-
-
I wrote a small post on this topic.
JSON is supposed to be easy and straightforward, but when there is nested data it can get quite complex.https://forum.magicmirror.builders/topic/9712/cannot-add-modules/14
-
@evroom and each module gets to customize the config to their needs, so no two look alike… (to the beginners)
-
I am thinking about install this
https://github.com/dolanmiu/MMM-awesome-alexa/blob/master/README.mdBut I don’t have a pi button, do I really need that?
Can’t I jut lay say -Alexa light the magic mirror