MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. trixrforchris
    T
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    trixrforchris

    @trixrforchris

    0
    Reputation
    1
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    trixrforchris Unfollow Follow

    Latest posts made by trixrforchris

    • RE: Module not found [Solved]

      @sdetweil Thanks Sam!

      posted in Troubleshooting
      T
      trixrforchris
    • Module not found [Solved]

      Hi all,

      I came across this strange behaviour where some of my installed modules would return an error ;

      - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
      - 
          at Module._resolveFilename (internal/modules/cjs/loader.js:887:15)
          at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128)
          at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
          at Module._load (internal/modules/cjs/loader.js:732:27)
          at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
          at Module.require (internal/modules/cjs/loader.js:959:19)
          at require (internal/modules/cjs/helpers.js:88:18)
          at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-CalendarExt2/node_helper.js:4:17)
          at Module._compile (internal/modules/cjs/loader.js:1078:30)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10) {
        code: 'MODULE_NOT_FOUND',
        requireStack: [
          '/home/pi/MagicMirror/modules/MMM-CalendarExt2/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
      

      I tried re-installing the module, updating nodejs, and even re-installing MM & OS (Raspbian bullseye). Nothing seemed to fix the issue, then i came across this Github Issue and joekaiser solved it!

      • You just need to add Request to the dependencies. In the MMM-CalendarExt2 folder, run npm i request

      Thanks everyone! Hopefully this helps someone else too.

      posted in Troubleshooting
      T
      trixrforchris