Read the statement by Michael Teeuw here.
unexpected token error
-
There is a comma to much at the end of the keywords array:
"Forecast",
-
@KristjanESPERANTO said in unexpected token error:
There is a comma to much at the end of the keywords array: “Forecast”,
javascript is very accepting of TOO MANY commas…
and NOT accepting of not enough .but I don’t understand what MM is complaining about the package.json
unless its the enhancement to updateNotification…
[ERROR] SyntaxError: Error parsing /home/lolo/MagicMirror/modules/MMM-OpenWeatherMapForecast/package.json: Unexpected token ‘]’, …“ast”, ],
-
that was it! thank you so much!
it loads now. -
-
@sdetweil said in unexpected token error:
javascript is very accepting of TOO MANY commas…
That’s right about JavaScript. But trailing commas are a syntax error in JSON files.
-
@KristjanESPERANTO said in unexpected token error:
syntax error in JSON files.
never mind… I didn’t catch that it was in json file…
but the user shouldn’t be editing the file… so its the authors error…
as the author just updated it I thinkbut how did he npm install??
unless he did a git pull and didn’t npm installI see this latest is the case, as you opened issue.
I updated to point the way … -
My Pull Request has been merged :-)
Users have to update the module, then the problem should be solved.