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-NewsAPI after MM2.25.0 update

    Scheduled Pinned Locked Moved System
    6 Posts 3 Posters 806 Views 3 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.
    • K Offline
      kicifans
      last edited by

      Hello everyone!

      Anyone else having problems with this module after updating?

      I get this error when starting up MagicMirror:

      [ERROR] (node:2571) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘node-fetch’
      Require stack:

      • /home/pi/MagicMirror/modules/MMM-NewsAPI/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 node:internal/modules/cjs/loader:1084:15
        at Function. (node:electron/js2c/browser_init:2:117419)
        at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
        at node:internal/modules/cjs/loader:929:27
        at Function._load (node:electron/js2c/asar_bundle:2:13327)
        at Module.require (node:internal/modules/cjs/loader:1150:19)
        at require (node:internal/modules/cjs/helpers:110:18)
        at Object. (/home/pi/MagicMirror/modules/MMM-NewsAPI/node_helper.js:4:13)
        at Module._compile (node:internal/modules/cjs/loader:1271:14)
        at Object…js (node:internal/modules/cjs/loader:1326:10)
        at Module.load (node:internal/modules/cjs/loader:1126:32)
        at node:internal/modules/cjs/loader:967:12
        at Function._load (node:electron/js2c/asar_bundle:2:13327)
        at Module.require (node:internal/modules/cjs/loader:1150:19)
        at require (node:internal/modules/cjs/helpers:110:18)
        at loadModule (/home/pi/MagicMirror/js/app.js:180:19)

      Maybe module is working fine for others after update?

      Any ideas or help would be appreciated!
      Thanks in advance.

      S 1 Reply Last reply Reply Quote 0
      • S Away
        sdetweil @kicifans
        last edited by

        @kicifans said in MMM-NewsAPI after MM2.25.0 update:

        Cannot find module ‘node-fetch’

        yes, we removed node-fetch in this release, and here is another module that didn’t document using it…

        see general purpose recovery steps here
        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

        K mumblebajM 2 Replies Last reply Reply Quote 1
        • K Offline
          kicifans @sdetweil
          last edited by

          @sdetweil Thank you! This solved the issue!

          S 1 Reply Last reply Reply Quote 1
          • S Away
            sdetweil @kicifans
            last edited by

            @kicifans awesome… thanks for the feedback…

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 1
            • mumblebajM Offline
              mumblebaj Module Developer @sdetweil
              last edited by

              @sdetweil Thanks for the assist with this one Sam but my module does list the dependencies on Github. Check it out.

              https://github.com/mumblebaj/MMM-NewsAPI

              Check out my modules at: https://github.com/mumblebaj?tab=repositories

              S 1 Reply Last reply Reply Quote 1
              • S Away
                sdetweil @mumblebaj
                last edited by

                @mumblebaj all I can say is the ‘manual fix’ worked…

                don’t know why

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 1
                • 1 / 1
                • First post
                  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