Read the statement by Michael Teeuw here.
MMM-CalendarExt3
-
@sdetweil config:check returns the same error
The node one doesn’t produce anythingAdding var document; to the config.js gives parsing error unexpected keyword ‘var’
-
@bicolorbore586 very first line
Right? -
@sdetweil it wasn’t. Does it need to be before let config = { or the fist line after that?
-
@bicolorbore586 very first line of the file, all by itself
Before any comments -
@sdetweil that appears to have worked. Out of interest. What does that do?
-
@bicolorbore586 the module code you have used the global variable document to examine the web page contents
The syntax checker found the use, but didn’t know that this code (config.js is a JavaScript file) was loaded in a browser
So it reported use of an undeclared variableThe fix was to declare the variable as a global so the checker will be happy
