Read the statement by Michael Teeuw here.
MMM-NewsAPI after MM2.25.0 update
-
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. -
@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 -
@sdetweil Thank you! This solved the issue!
-
@kicifans awesome… thanks for the feedback…
-
@sdetweil Thanks for the assist with this one Sam but my module does list the dependencies on Github. Check it out.
-
@mumblebaj all I can say is the ‘manual fix’ worked…
don’t know why