• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-CalendarWeek (MODULE_NOT_FOUND) - MM2.15.0

Scheduled Pinned Locked Moved Troubleshooting
2 Posts 2 Posters 744 Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    peggleg
    last edited by peggleg Jun 6, 2021, 10:25 AM Jun 6, 2021, 10:24 AM

    Hi,

    Could someone please advise why I am getting this error when trying to run MM with MMM-CalendarWeek configured?

    npm install does not seem to do enything when running within
    /home/pi/MagicMirror/modules/MMM-CalendarWeek

    npm start

    [06.06.2021 11:20.54.870] [LOG] Starting MagicMirror: v2.15.0
    [06.06.2021 11:20.54.879] [LOG] Loading config …
    [06.06.2021 11:20.54.892] [LOG] Loading module helpers …
    [06.06.2021 11:20.54.896] [LOG] No helper found for module: clock.
    [06.06.2021 11:20.55.807] [LOG] Initializing new module helper …
    [06.06.2021 11:20.55.808] [LOG] Module helper loaded: calendar
    [06.06.2021 11:20.55.898] [LOG] Initializing new module helper …
    [06.06.2021 11:20.55.900] [LOG] Module helper loaded: MMM-OpenWeatherMapForecast
    ***[06.06.2021 11:20.55.905] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘valid-url’
    Require stack:

    • /home/pi/MagicMirror/modules/MMM-CalendarWeek/node_helper.js
    • /home/pi/MagicMirror/js/app.js
    • /home/pi/MagicMirror/js/electron.js
    • /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js***

    [06.06.2021 11:20.55.907] [LOG] Loading module helpers …
    [06.06.2021 11:20.55.909] [LOG] No helper found for module: clock.
    [06.06.2021 11:20.55.910] [LOG] Initializing new module helper …
    [06.06.2021 11:20.55.912] [LOG] Module helper loaded: calendar
    [06.06.2021 11:20.55.913] [LOG] Initializing new module helper …
    [06.06.2021 11:20.55.914] [LOG] Module helper loaded: MMM-OpenWeatherMapForecast
    ********[06.06.2021 11:20.55.917] [ERROR] App threw an error during load
    [06.06.2021 11:20.55.921] [ERROR] Error: Cannot find module ‘valid-url’
    Require stack:

    • /home/pi/MagicMirror/modules/MMM-CalendarWeek/node_helper.js
    • /home/pi/MagicMirror/js/app.js
    • /home/pi/MagicMirror/js/electron.js
    • /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js********
    • at Module._resolveFilename (internal/modules/cjs/loader.js:972:15)
      at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921)
      at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
      at Module._load (internal/modules/cjs/loader.js:848:27)
      at Function.f._load (electron/js2c/asar_bundle.js:5:12633)
      at Module.require (internal/modules/cjs/loader.js:1032:19)
      at require (internal/modules/cjs/helpers.js:72:18)
      at Object. (/home/pi/MagicMirror/modules/MMM-CalendarWeek/node_helper.js:9:16)
      at Module._compile (internal/modules/cjs/loader.js:1152:30)
      at Object.Module._extensions…js (internal/modules/cjs/loader.js:1173:10)
      [06.06.2021 11:20.55.924] [ERROR] Whoops! There was an uncaught exception…
      [06.06.2021 11:20.55.934] [ERROR] Error: Cannot find module ‘valid-url’
      Require stack:
    • /home/pi/MagicMirror/modules/MMM-CalendarWeek/node_helper.js
    • /home/pi/MagicMirror/js/app.js
    • /home/pi/MagicMirror/js/electron.js
    • /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
    • at Module._resolveFilename (internal/modules/cjs/loader.js:972:15)
      at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921)
      at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
      at Module._load (internal/modules/cjs/loader.js:848:27)
      at Function.f._load (electron/js2c/asar_bundle.js:5:12633)
      at Module.require (internal/modules/cjs/loader.js:1032:19)
      at require (internal/modules/cjs/helpers.js:72:18)
      at Object. (/home/pi/MagicMirror/modules/MMM-CalendarWeek/node_helper.js:9:16)
      at Module._compile (internal/modules/cjs/loader.js:1152:30)
      at Object.Module._extensions…js (internal/modules/cjs/loader.js:1173:10) {
      code: ‘MODULE_NOT_FOUND’,
      requireStack: [
      ‘/home/pi/MagicMirror/modules/MMM-CalendarWeek/node_helper.js’,
      ‘/home/pi/MagicMirror/js/app.js’,
      ‘/home/pi/MagicMirror/js/electron.js’,
      ‘/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js’,
      undefined
      ]
      }
      [06.06.2021 11:20.55.939] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      [06.06.2021 11:20.55.940] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      [06.06.2021 11:20.56.394] [LOG] Launching application.
    S 1 Reply Last reply Jun 6, 2021, 11:52 AM Reply Quote 0
    • S Offline
      sdetweil @peggleg
      last edited by Jun 6, 2021, 11:52 AM

      @peggleg yes, reported back in April.

      MM has removed items connected the the request library, which has security issues and will not be updated.

      it seems a number of modules did not document using libraries in their package.json file.

      to work around,

      in the module or mm folder do

      npm install valid-url

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      1 / 1
      • First post
        1/2
        Last post
      Enjoying MagicMirror? Please consider a donation!
      MagicMirror created by Michael Teeuw.
      Forum managed by Sam, technical setup by Karsten.
      This forum is using NodeBB as its core | Contributors
      Contact | Privacy Policy