Hello,
I had installed a module called on-this-day and now my MM doesn’t work. I uninstalled it and it still doesn’t work. I get this error:
> magicmirror@2.18.0 start
> DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
[22.01.2022 20:01.34.583] [LOG] Starting MagicMirror: v2.18.0
[22.01.2022 20:01.34.621] [LOG] Loading config ...
[22.01.2022 20:01.34.650] [LOG] Loading module helpers ...
[22.01.2022 20:01.34.661] [LOG] No helper found for module: alert.
[22.01.2022 20:01.34.746] [LOG] Initializing new module helper ...
[22.01.2022 20:01.34.751] [LOG] Module helper loaded: updatenotification
[22.01.2022 20:01.34.757] [LOG] No helper found for module: clock.
[22.01.2022 20:01.36.053] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error [ERR_REQUIRE_ESM]: require() of ES Module /home/pi/MagicMirror/node_modules/node-fetch/src/index.js from /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js not supported.
Instead change the require of index.js in /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js to a dynamic import() which is available in all CommonJS modules.
[22.01.2022 20:01.36.058] [LOG] Loading module helpers ...
[22.01.2022 20:01.36.062] [LOG] No helper found for module: alert.
[22.01.2022 20:01.36.066] [LOG] Initializing new module helper ...
[22.01.2022 20:01.36.068] [LOG] Module helper loaded: updatenotification
[22.01.2022 20:01.36.072] [LOG] No helper found for module: clock.
[22.01.2022 20:01.36.215] [ERROR] App threw an error during load
[22.01.2022 20:01.36.218] [ERROR] Error [ERR_REQUIRE_ESM]: require() of ES Module /home/pi/MagicMirror/node_modules/node-fetch/src/index.js from /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js not supported.
Instead change the require of index.js in /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js to a dynamic import() which is available in all CommonJS modules.
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Object.<anonymous> (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:11:15)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Object.<anonymous> (/home/pi/MagicMirror/modules/default/calendar/node_helper.js:8:25)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at loadModule (/home/pi/MagicMirror/js/app.js:127:19)
at loadNextModule (/home/pi/MagicMirror/js/app.js:165:5)
at /home/pi/MagicMirror/js/app.js:167:6
at loadModule (/home/pi/MagicMirror/js/app.js:146:4)
at loadNextModule (/home/pi/MagicMirror/js/app.js:165:5)
at /home/pi/MagicMirror/js/app.js:167:6
at Class.loaded (/home/pi/MagicMirror/js/node_helper.js:18:3)
at loadModule (/home/pi/MagicMirror/js/app.js:144:6)
at loadNextModule (/home/pi/MagicMirror/js/app.js:165:5)
at /home/pi/MagicMirror/js/app.js:167:6
at loadModule (/home/pi/MagicMirror/js/app.js:146:4)
at loadNextModule (/home/pi/MagicMirror/js/app.js:165:5)
at loadModules (/home/pi/MagicMirror/js/app.js:176:3)
at /home/pi/MagicMirror/js/app.js:225:4
at loadConfig (/home/pi/MagicMirror/js/app.js:81:4)
at App.start (/home/pi/MagicMirror/js/app.js:212:3)
at Object.<anonymous> (/home/pi/MagicMirror/js/electron.js:153:7)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at loadApplicationPackage (/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js:110:16)
at Object.<anonymous> (/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js:222:9)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Object.<anonymous> (node:electron/js2c/browser_init:193:3197)
at Object../lib/browser/init.ts (node:electron/js2c/browser_init:193:3401)
at __webpack_require__ (node:electron/js2c/browser_init:1:128)
at node:electron/js2c/browser_init:1:1200
at node:electron/js2c/browser_init:1:1267
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
[22.01.2022 20:01.36.224] [ERROR] Whoops! There was an uncaught exception...
[22.01.2022 20:01.36.282] [ERROR] Error [ERR_REQUIRE_ESM]: require() of ES Module /home/pi/MagicMirror/node_modules/node-fetch/src/index.js from /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js not supported.
Instead change the require of index.js in /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js to a dynamic import() which is available in all CommonJS modules.
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Object.<anonymous> (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:11:15)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Object.<anonymous> (/home/pi/MagicMirror/modules/default/calendar/node_helper.js:8:25)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at loadModule (/home/pi/MagicMirror/js/app.js:127:19)
at loadNextModule (/home/pi/MagicMirror/js/app.js:165:5)
at /home/pi/MagicMirror/js/app.js:167:6
at loadModule (/home/pi/MagicMirror/js/app.js:146:4)
at loadNextModule (/home/pi/MagicMirror/js/app.js:165:5)
at /home/pi/MagicMirror/js/app.js:167:6
at Class.loaded (/home/pi/MagicMirror/js/node_helper.js:18:3)
at loadModule (/home/pi/MagicMirror/js/app.js:144:6)
at loadNextModule (/home/pi/MagicMirror/js/app.js:165:5)
at /home/pi/MagicMirror/js/app.js:167:6
at loadModule (/home/pi/MagicMirror/js/app.js:146:4)
at loadNextModule (/home/pi/MagicMirror/js/app.js:165:5)
at loadModules (/home/pi/MagicMirror/js/app.js:176:3)
at /home/pi/MagicMirror/js/app.js:225:4
at loadConfig (/home/pi/MagicMirror/js/app.js:81:4)
at App.start (/home/pi/MagicMirror/js/app.js:212:3)
at Object.<anonymous> (/home/pi/MagicMirror/js/electron.js:153:7)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at loadApplicationPackage (/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js:110:16)
at Object.<anonymous> (/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js:222:9)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Object.<anonymous> (node:electron/js2c/browser_init:193:3197)
at Object../lib/browser/init.ts (node:electron/js2c/browser_init:193:3401)
at __webpack_require__ (node:electron/js2c/browser_init:1:128)
at node:electron/js2c/browser_init:1:1200
at node:electron/js2c/browser_init:1:1267
at Function.c._load (node:electron/js2c/asar_bundle:5:13331) {
code: 'ERR_REQUIRE_ESM'
}
[22.01.2022 20:01.36.293] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[22.01.2022 20:01.36.295] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
[22.01.2022 20:01.38.394] [LOG] Launching application.
[12298:0122/200144.333810:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
[12329:0122/200145.375493:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
[22.01.2022 20:01.58.391] [LOG] Shutting down server...
[22.01.2022 20:01.58.398] [LOG] Stopping module helper: updatenotification
[22.01.2022 20:01.58.401] [LOG] Stopping module helper: updatenotification
[22.01.2022 20:01.58.406] [ERROR] Whoops! There was an uncaught exception...
[22.01.2022 20:01.58.410] [ERROR] TypeError: Cannot read properties of undefined (reading 'close')
at App.stop (/home/pi/MagicMirror/js/app.js:257:14)
at App.<anonymous> (/home/pi/MagicMirror/js/electron.js:139:7)
at App.emit (node:events:394:28)
at appMethod (node:electron/js2c/browser_init:69:1830)
at Object.execute (node:electron/js2c/browser_init:69:5623)
at MenuItem.click (node:electron/js2c/browser_init:73:1862)
at Object.a._executeCommand (node:electron/js2c/browser_init:81:2453)
[22.01.2022 20:01.58.414] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[22.01.2022 20:01.58.417] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
Can someone help me fix this?