Read the statement by Michael Teeuw here.
Config Error
-
@lavolp3 The alert part needs to look like this:
{ module: "alert", position: "right", welcome_message: "a string" },
-
@sdetweil okay so ive been combing through the code, and since i didnt know how to properly edit .json files, i had alot of cleanup to do, im still not done, but getting there. what is a trailing space though? i dont know what to remove
-
-
@PHAGE-GOV ignore the trailing space error. It’s stupid
-
@sdetweil indeed it is, i found it tho, and i fixed everything else too! thank you so much! and i learned so much from this also, i feel much more confident poking around and i defs learned much more about proper coding
-
@PHAGE-GOV and finding your way on the next error. After 3 years I still make them
-
@sdetweil yeah, but npm run config:check was such a life saver
-
one of the biggest tips I can give you is to throw out everything you know about capitalization…
Welcome_message
is different fromwelcome_message
Most of the time, with RARE exception, the initial letter is lowercase.
javacriptIsWeird
-
@BKeyport no… it is entirely up to the author of the module what case is used.
there are no rules…only thing is javascript is case sensitive
var foo
is different than
var fOo
etc…the config code doesn’t care, it takes all the settings and makes an object
the module then looks for specific items… almost NEVER checking for case mismatchconfig.foo
will NOT find
config.fOoit is NOT an error to config if fOo is not present.
filenames on linux are also case sensitive
-
@sdetweil That’s effectively what I said… I’m working from within the naming conventions typically used by module authors, including myself, and trying to stress that case is important, because if you come from a world where it’s not (DOS/Windows, perhaps?) it takes some getting used to.
bottom line,
Welcome_message
is not the same aswelcome_message