Read the statement by Michael Teeuw here.
CANNOT ADD MODULES
-
Thank you. I have been using your tutorials all night. It has helped me get to where I am. I tried folllowing these steps for different modules and it didn’t seem to work for me
-
What does Expected ‘]’ to match ‘[’ from line 45 and instead saw ‘:’.
75 Expected ‘}’ to match ‘{’ from line 28 and instead saw 'MMM-lyft mean? -
@anhanyoung means u are missing comma, " or something… confused the parser…
-
Hi,
For beginners, the catchphrase is “JSON syntax”.
There are many articles to be found, both short and lengthy.
A small article would be:
https://restfulapi.net/json-syntax/The main things to look for in your config.js file are:
- does every [ have a matching ]
- are all arrays separated by a , (the last array does not need a ,)
- does every { have a matching }
- are all objects separated by a , (the last object does not need a ,)
- is every name value pair separated by a ,
The syntax checker will try to find out if this syntax is correct and tries to predict where the error could be.
So, when it says it saw a [ and it cannot find a matching ] it tells you what was expected and what it saw.Try to format you config.js to make it more visible.
For example this:[{},{}],[{},{[]}]
is better written like this:
[ {}, {} ], [ { }, { [ ] } ]
Pairs of [ ]and { } are better visible like this.
Good luck :-)