Read the statement by Michael Teeuw here.
Error in DNews (copy of PNews)
-
Re: MMM-Pnews
Hi, long time ago you made this DNews module so I could see some local news. (it was copy from your PNews module.
Now I re-installed the mirror after upgraded to an RPI4-4GB and this module gives me an error.
Would you mind have a look at this.I would like to see this RSS feed on my mirror again :
http://www.nieuwsblad.be/rss/section/c1e533dc-ff1c-40fc-b48c-77ee686d54d4?intro=1",I installed the PNews but unfortunately it works with an API key (which I have) but my news source isn’t available.
I have the MMM-NewsFeed to display the regular new but this module can not have 2 instances. So I would like to continue using the DNews module next to it (as it was in the past)
Hope you can help.this is the error:
[04.12.2021 10:42.09.832] [ERROR] Whoops! There was an uncaught exception... [04.12.2021 10:42.09.837] [ERROR] Error: Cannot find module 'xml2js' Require stack: /home/pi/MagicMirror/modules/MMM-DNews/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. (/home/pi/MagicMirror/modules/MMM-DNews/node_helper.js:9:16) at Module._compile (internal/modules/cjs/loader.js:1078:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10) at Module.load (internal/modules/cjs/loader.js:935:32) at Module._load (internal/modules/cjs/loader.js:776:14) 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 loadModule (/home/pi/MagicMirror/js/app.js:127:19) at loadNextModule (/home/pi/MagicMirror/js/app.js:165:5) at /home/pi/MagicMirror/js/app.js:167:6 at loadModule (/home/pi/MagicMirror/js/app.js:146:4) at loadNextModule (/home/pi/MagicMirror/js/app.js:165:5) at /home/pi/MagicMirror/js/app.js:167:6 at loadModule (/home/pi/MagicMirror/js/app.js:146:4) { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/pi/MagicMirror/modules/MMM-DNews/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 ] } [04.12.2021 10:42.09.839] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
-
@johans Have a look at this thread.
https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later/11Your error
Error: Cannot find module 'xml2js'
-
@mumblebaj said in Error in DNews (copy of PNews):
@johans Have a look at this thread.
https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later/11Your error
Error: Cannot find module 'xml2js'
Thank you - now it’s working again.
-
@johans yes… npm install…very important. I’ll have to look at the repository to make sure I put that in the instructions. If I didn’t I apologize :)
-
@cowboysdude - thanks