MagicMirror: Can not start magic mirror with calendar module any longer

Dear all,

after a while I tried to start my magic mirror again with the calendar module but out of no reason I currently get the following error:

[04.08.2021 12:13.12.814] [LOG]   Starting MagicMirror: v2.16.0
[04.08.2021 12:13.12.821] [LOG]   Loading config ...
[04.08.2021 12:13.12.826] [LOG]   Loading module helpers ...
[04.08.2021 12:13.12.827] [LOG]   No helper found for module: alert.
[04.08.2021 12:13.12.948] [LOG]   Initializing new module helper ...
[04.08.2021 12:13.12.949] [LOG]   Module helper loaded: updatenotification
[04.08.2021 12:13.12.950] [LOG]   No helper found for module: clock.
[04.08.2021 12:13.13.364] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'crypto-js'
[04.08.2021 12:13.13.365] [LOG]   Loading module helpers ...
[04.08.2021 12:13.13.366] [LOG]   No helper found for module: alert.
[04.08.2021 12:13.13.367] [LOG]   Initializing new module helper ...
[04.08.2021 12:13.13.375] [LOG]   Module helper loaded: updatenotification
[04.08.2021 12:13.13.376] [LOG]   No helper found for module: clock.
[04.08.2021 12:13.13.380] [ERROR] Whoops! There was an uncaught exception...
[04.08.2021 12:13.13.385] [ERROR] { Error: Cannot find module 'crypto-js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/home/pi/MagicMirror/node_modules/digest-fetch/digest-fetch-src.js:10:18)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12) code: 'MODULE_NOT_FOUND' }
[04.08.2021 12:13.13.386] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[04.08.2021 12:13.13.387] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues

After removing the calendar module, everything works as expected.

Even with the default config.js the error appears. Any idea how to solve this ? Even the npm run config:check is ok.

Thanks in advance !

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 28 (5 by maintainers)

Most upvoted comments

Found it! It was a dependency of an old digest-fetch:

https://github.com/devfans/digest-fetch/pull/24/files