• 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-Podcast2 - deprecated package request

Scheduled Pinned Locked Moved Solved Troubleshooting
3 Posts 2 Posters 404 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.
  • O Offline
    oggo
    last edited by Dec 11, 2021, 5:40 PM

    Hi all,

    while trying to build my first magicmirror I’m struggeling on the usage of MMM-Podcast2.
    I noticed that since MM Release 2.15.0 the package request is removed as it’s deprecated.

    As MMM-Podcast 2 makes use of this package MM is showing this error on startup:

    [11.12.2021 18:18.30.091] [ERROR] Error: Cannot find module 'request'
    Require stack:
    - /home/pi/MagicMirror/modules/MMM-Podcast2/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: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-Podcast2/node_helper.js:11:17)
        at Module._compile (internal/modules/cjs/loader.js:1078:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10)
    
    

    So, my question is: Does anyone maybe already replaced the usage package request with e.g. node-fetch (it’s stated as successor in the release notes) in MMM-Podcast2?

    S 2 Replies Last reply Dec 11, 2021, 5:44 PM Reply Quote 0
    • S Away
      sdetweil @oggo
      last edited by Dec 11, 2021, 5:44 PM

      @oggo see this
      https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Away
        sdetweil @oggo
        last edited by Dec 11, 2021, 6:07 PM

        @oggo until someone changes the code, you can only install request to use this module

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • O oggo referenced this topic on May 22, 2022, 12:25 PM
        • 1 / 1
        1 / 1
        • First post
          1/3
          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