Read the statement by Michael Teeuw here.
No JavaScript experience - Config.js not working
-
This post is deleted! -
@sdetweil So you’re saying delete the commas above the line where it shows I have an unexpected token line?
-
This post is deleted! -
@olesoncrypto no. add. but I see u fixed it
-
@sdetweil Hey I just fixed it all up thanks you to! Adding commas a line above the syntax error fixed it. I was so happy to see “Your configuration file doesn’t contain syntax errors :)” lmao. You’re a life safer
-
@olesoncrypto see my MMM-Config module. it presents a form to fill in for config.js. no more commas!!
-
@sdetweil I have a new issue. Instead of seeing the original Magic Mirror^2 screen that says “add a config.js file or fix the syntax errors” now only shows a black screen. Both my mmstart.sh and magicmirror is active with my pm2. I also have downloaded chromium-browser. Do you know what might be the cause of this? I’ve downloaded all the module content inside of each module directory with npm.
-
@olesoncrypto this is typically caused by a missing library.
we removed some, and it turns out modules didn’t document using them
look at the pm2 log
command
pm2 logs --lines=100
looking for module not found.
for each of those, go to the module folder
if there is NOT a package.json file donpm init -y
then in either case do
npm install xxx -- save
where xx is the name of the not found thing
we know about
request
rrule-alt
and
valid-urlthen restart mm
-
0|mmstart | /home/pi/MagicMirror/js/app.js:20 0|mmstart | Log.log("Starting MagicMirror: v" + global.version); 0|mmstart | ^ 0|mmstart | TypeError: Log.log is not a function
I’m not sure how to fix this one. I nano’d into the file and they show a bunch of these log.log within the app.js file
-
@olesoncrypto yeh, its provided by the logger
so,
give me output of
node -v
and npm -vif u rename your config.js to save.config.js (mv is the rename command in lnux)
and copy the sample.config.js to config.js (in the config folder)does it work ?