Read the statement by Michael Teeuw here.
Config Error
-
@sdetweil would it be a good idea at this point to just delete and reinstall lol
-
@sdetweil wait so how do i fix that line? like what would you recomend?
-
@PHAGE-GOV that is what you have to figure out… run the syntax checker
cd ~/MagicMirror npm run config:check
the error is typically reported on the line following the error, but maybe not in this case.
read this
https://forum.magicmirror.builders/topic/4231/how-to-add-modules-for-absolute-beginners?_=1589635889121you are asking for people to do the work for you, and not learning… time to learn
-
@sdetweil okay mom lmaoo, and yes, i agree
-
so sensei @sdetweil , i got this.
hecking file... /home/pi/MagicMirror/config/config.js Line 41 col 4 Parsing error: Unexpected token Welcome_message
so does that just mean i should delete that line altogether?
-
@sdetweil wait so it said the options were “string” and “false” for “welcome message” thats where its wrong, so i think its fixed?? ill update if it isnt fixed lol
-
@PHAGE-GOV said in Config Error:
so does that just mean i should delete that line altogether?
no idea… maybe it is an important line,
but as I said, the error is reported on the line after the actual problem
if u read the linked getting started
you would see that elements in config.js are
sometext : somevalue
where somevalue MUST be quoted before and after (single or double doesn’t matter, as long as both ends are the same)
unless somevalue is true/false, or a numberAND you need to add a continuation char (comma ,) at the end to the line if the next line
is include in this info, or more info is comming (another module config for example) -
@sdetweil yeah ill try that, i tried fixing “string” because it had an extra space in it but i got the no config.js file again, i will try looking for the other stuff rn
-
@PHAGE-GOV said in Config Error:
in it but i got the no config.js file again,
if it has an error in the config, it throws up its hands and says no config…
yes there is one, but he can’t tell what to do -
@PHAGE-GOV I guess you have that part in the alert module.
It needs to be like @sdetweil said. on the left side a single word, here
welcome_message
. You need to take care of underlines and the upper-/lowercase.
Then there is a:
and then the value which can be a string or false.welcome_message: 'Any string you like'
OR
welcome_message: false