cbrooker / MMM-Todoist

This is an extension for the MagicMirror2 platform. It will display your Todoist todos on your MagicMirror.
MIT License
151 stars 58 forks source link

Module not showing: "Uncaught TypeError: wrapper is undefined" #108

Closed steff-lorenz closed 1 year ago

steff-lorenz commented 1 year ago

Hello,

first, thank you very much for this very nice module. However, I could not make it work yet.

The relevant parts of the config.js

{
                        module: "MMM-Todoist",
                        position: "top-left",
                        header: "ToDos",
                        config: {
                                accessToken: "TOKEN",
                                maximumEntries: 10,
                                updateInterval: 10*60*1000,
                                fade: false,
                                projects: [2231397751, 2296580623, 2296580589]
                                }
}

The module seems to work, if I add debug=True I can see all my projects etc. However, it is not displayed on the Mirror and if I inspect the page I do get the following error

Starting module: MMM-Todoist MMM-Todoist.js:110:7
All modules started! main.js:501:8
Uncaught TypeError: wrapper is undefined
    createDomObjects http://192.168.0.106:3333/js/main.js:36
    createDomObjects http://192.168.0.106:3333/js/main.js:20
    modulesStarted http://192.168.0.106:3333/js/main.js:504
    startModules http://192.168.0.106:3333/js/loader.js:55
    loadNextModule http://192.168.0.106:3333/js/loader.js:38
    onload http://192.168.0.106:3333/js/loader.js:210
    loadFile http://192.168.0.106:3333/js/loader.js:208
    loadNextModule http://192.168.0.106:3333/js/loader.js:36
    loadNextModule http://192.168.0.106:3333/js/loader.js:29
    afterLoad http://192.168.0.106:3333/js/loader.js:130
    bootstrapModule http://192.168.0.106:3333/js/loader.js:166
    load http://192.168.0.106:3333/js/translator.js:117
    onreadystatechange http://192.168.0.106:3333/js/translator.js:30
    loadJSON http://192.168.0.106:3333/js/translator.js:20
    load http://192.168.0.106:3333/js/translator.js:114
    loadTranslations http://192.168.0.106:3333/js/module.js:330
    load http://192.168.0.106:3333/js/translator.js:117
    onreadystatechange http://192.168.0.106:3333/js/translator.js:30
    loadJSON http://192.168.0.106:3333/js/translator.js:20
    load http://192.168.0.106:3333/js/translator.js:114
    loadTranslations http://192.168.0.106:3333/js/module.js:328
    bootstrapModule http://192.168.0.106:3333/js/loader.js:163
    loadNextDependency http://192.168.0.106:3333/js/module.js:296
    loadNextDependency http://192.168.0.106:3333/js/module.js:293
    onload http://192.168.0.106:3333/js/loader.js:210
    loadFile http://192.168.0.106:3333/js/loader.js:208
    loadFile http://192.168.0.106:3333/js/loader.js:268
    loadNextDependency http://192.168.0.106:3333/js/module.js:291
    loadDependencies http://192.168.0.106:3333/js/module.js:300
    loadStyles http://192.168.0.106:3333/js/module.js:267
    bootstrapModule http://192.168.0.106:3333/js/loader.js:161
    loadNextDependency http://192.168.0.106:3333/js/module.js:296
    loadDependencies http://192.168.0.106:3333/js/module.js:300
    loadScripts http://192.168.0.106:3333/js/module.js:276
    bootstrapModule http://192.168.0.106:3333/js/loader.js:159
    afterLoad http://192.168.0.106:3333/js/loader.js:129
    loadModule http://192.168.0.106:3333/js/loader.js:142
    onload http://192.168.0.106:3333/js/loader.js:190
    loadFile http://192.168.0.106:3333/js/loader.js:188
    loadModule http://192.168.0.106:3333/js/loader.js:140
    loadNextModule http://192.168.0.106:3333/js/loader.js:27
    loadNextModule http://192.168.0.106:3333/js/loader.js:29
    afterLoad http://192.168.0.106:3333/js/loader.js:130
    bootstrapModule http://192.168.0.106:3333/js/loader.js:166
    loadTranslations http://192.168.0.106:3333/js/module.js:316
    bootstrapModule http://192.168.0.106:3333/js/loader.js:163
    loadNextDependency http://192.168.0.106:3333/js/module.js:296
    loadNextDependency http://192.168.0.106:3333/js/module.js:293
    onload http://192.168.0.106:3333/js/loader.js:210
    loadFile http://192.168.0.106:3333/js/loader.js:208
    loadFile http://192.168.0.106:3333/js/loader.js:268
    loadNextDependency http://192.168.0.106:3333/js/module.js:291
    loadDependencies http://192.168.0.106:3333/js/module.js:300
    loadStyles http://192.168.0.106:3333/js/module.js:267
    bootstrapModule http://192.168.0.106:3333/js/loader.js:161
main.js:36:4

I am not very familiar with JavaScript and therefore I am not sure if this is actually a problem related to this module. But I don't have any problems with other modules so far.

steff-lorenz commented 1 year ago

Sorry I am stupid. I just made a mistake in the position argument.