Read the statement by Michael Teeuw here.
MMM-CalendarWeek doesn't display
-
@sdetweil
The output of the MagicMirror-error.log is as follows :/home/serveradmin/.pm2/logs/MagicMirror-error.log last 50 lines:
0|MagicMir | at require (node:internal/modules/helpers:130:18)
0|MagicMir | at loadConfig (/home/serveradmin/MagicMirror/js/app.js:117:14)
0|MagicMir | at App.start (/home/serveradmin/MagicMirror/js/app.js:250:18)
0|MagicMir | at Object. (/home/serveradmin/MagicMirror/js/electron.js:193:7)
0|MagicMir | at Module._compile (node:internal/modules/cjs/loader:1256:14)
0|MagicMir | at Module._extensions…js (node:internal/modules/cjs/loader:1311:10)
0|MagicMir | at Module.load (node:internal/modules/cjs/loader:1098:32)
0|MagicMir | at Module._load (node:internal/modules/cjs/loader:945:12)
0|MagicMir | MESA-INTEL: warning: Bay Trail Vulkan support is incomplete
0|MagicMir | libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
0|MagicMir | /home/serveradmin/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
0|MagicMir | [2024-04-29 22:15:24.769] [ERROR] (node:65585) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘valid-url’
0|MagicMir | Require stack:
0|MagicMir | - /home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/node_helper.js
0|MagicMir | - /home/serveradmin/MagicMirror/js/app.js
0|MagicMir | - /home/serveradmin/MagicMirror/js/electron.js
0|MagicMir | at Module._resolveFilename (node:internal/modules/cjs/loader:1055:15)
0|MagicMir | at s._resolveFilename (node:electron/js2c/browser_init:2:115476)
0|MagicMir | at Module._resolveFilename (/home/serveradmin/MagicMirror/node_modules/module-alias/index.js:49:29)
0|MagicMir | at Module._load (node:internal/modules/cjs/loader:908:27)
0|MagicMir | at c._load (node:electron/js2c/node_init:2:13672)
0|MagicMir | at Module.require (node:internal/modules/cjs/loader:1122:19)
0|MagicMir | at require (node:internal/modules/helpers:130:18)
0|MagicMir | at Object. (/home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/node_helper.js:9:16)
0|MagicMir | at Module._compile (node:internal/modules/cjs/loader:1256:14)
0|MagicMir | at Module._extensions…js (node:internal/modules/cjs/loader:1311:10)
0|MagicMir | at Module.load (node:internal/modules/cjs/loader:1098:32)
0|MagicMir | at Module._load (node:internal/modules/cjs/loader:945:12)
0|MagicMir | at c._load (node:electron/js2c/node_init:2:13672)
0|MagicMir | at Module.require (node:internal/modules/cjs/loader:1122:19)
0|MagicMir | at require (node:internal/modules/helpers:130:18)
0|MagicMir | at loadModule (/home/serveradmin/MagicMirror/js/app.js:183:19)
0|MagicMir | (Useelectron --trace-warnings ...
to show where the warning was created)
0|MagicMir | [2024-04-29 22:15:24.769] [ERROR] (node:65585) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
0|MagicMir | MESA-INTEL: warning: Bay Trail Vulkan support is incomplete
0|MagicMir | libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
0|MagicMir | /home/serveradmin/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
0|MagicMir | MESA-INTEL: warning: Bay Trail Vulkan support is incomplete
0|MagicMir | libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
0|MagicMir | /home/serveradmin/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
0|MagicMir | MESA-INTEL: warning: Bay Trail Vulkan support is incomplete
0|MagicMir | libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
0|MagicMir | [66191:0429/230235.459040:ERROR:browser_main_loop.cc(278)] Gdk: gdk_monitor_get_scale_factor: assertion ‘GDK_IS_MONITOR (monitor)’ failed
0|MagicMir | [66191:0429/230235.561159:ERROR:browser_main_loop.cc(278)] Gdk: gdk_monitor_get_scale_factor: assertion ‘GDK_IS_MONITOR (monitor)’ failed
0|MagicMir | [66191:0429/230235.572084:ERROR:browser_main_loop.cc(278)] Gdk: gdk_monitor_get_scale_factor: assertion ‘GDK_IS_MONITOR (monitor)’ failed
0|MagicMir | [66191:0429/230235.577044:ERROR:browser_main_loop.cc(278)] Gdk: gdk_monitor_get_scale_factor: assertion ‘GDK_IS_MONITOR (monitor)’ failed
0|MagicMir | [66191:0429/234504.968361:ERROR:browser_main_loop.cc(278)] Gdk: gdk_monitor_get_scale_factor: assertion ‘GDK_IS_MONITOR (monitor)’ failed
0|MagicMir | [66191:0429/234505.073793:ERROR:browser_main_loop.cc(278)] Gdk: gdk_monitor_get_scale_factor: assertion ‘GDK_IS_MONITOR (monitor)’ failed
0|MagicMir | [66191:0429/234505.089665:ERROR:browser_main_loop.cc(278)] Gdk: gdk_monitor_get_scale_factor: assertion ‘GDK_IS_MONITOR (monitor)’ failed
0|MagicMir | [66191:0429/234505.092215:ERROR:browser_main_loop.cc(278)] Gdk: gdk_monitor_get_scale_factor: assertion ‘GDK_IS_MONITOR (monitor)’ failed -
@DarrenO-0 said in MMM-CalendarWeek doesn't display:
: Cannot find module ‘valid-url’
yes, this module did not document using a library that we have deleted as no longer needed by the builtin support
oops
fix by loading it in the module folder
BUT this module also does not provide the file to document use either soo, in the module folder do
npm init -y npm install valid-url
-
@sdetweil
Run those commands in the folder for the MMM-CalendarWeek folder, or in the modules folder itself?I ran it in both folders and restarted MM but nothing changed. Still just a blank screen.
-
@DarrenO-0 in THAT module’s folder
-
@DarrenO-0 and look at the log output again
-
@sdetweil
Last 50 lines :0|MagicMir | at Module._resolveFilename (/home/serveradmin/MagicMirror/node_modules/module-alias/index.js:49:29)
0|MagicMir | at Module._load (node:internal/modules/cjs/loader:908:27)
0|MagicMir | at c._load (node:electron/js2c/node_init:2:13672)
0|MagicMir | at Module.require (node:internal/modules/cjs/loader:1122:19)
0|MagicMir | at require (node:internal/modules/helpers:130:18)
0|MagicMir | at Object. (/home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/vendor/ical.js/node-ical.js:2:15)
0|MagicMir | at Module._compile (node:internal/modules/cjs/loader:1256:14)
0|MagicMir | at Module._extensions…js (node:internal/modules/cjs/loader:1311:10)
0|MagicMir | at Module.load (node:internal/modules/cjs/loader:1098:32)
0|MagicMir | at Module._load (node:internal/modules/cjs/loader:945:12)
0|MagicMir | at c._load (node:electron/js2c/node_init:2:13672)
0|MagicMir | at Module.require (node:internal/modules/cjs/loader:1122:19)
0|MagicMir | at require (node:internal/modules/helpers:130:18)
0|MagicMir | at Object. (/home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/vendor/ical.js/index.js:3:12)
0|MagicMir | (Useelectron --trace-warnings ...
to show where the warning was created)
0|MagicMir | [2024-04-30 10:22:06.362] [ERROR] (node:69620) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
0|MagicMir | MESA-INTEL: warning: Bay Trail Vulkan support is incomplete
0|MagicMir | libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
0|MagicMir | /home/serveradmin/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
0|MagicMir | MESA-INTEL: warning: Bay Trail Vulkan support is incomplete
0|MagicMir | libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
0|MagicMir | /home/serveradmin/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
0|MagicMir | [2024-04-30 12:07:20.093] [ERROR] (node:70593) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘request’
0|MagicMir | Require stack:
0|MagicMir | - /home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/vendor/ical.js/node-ical.js
0|MagicMir | - /home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/vendor/ical.js/index.js
0|MagicMir | - /home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/calendarfetcher.js
0|MagicMir | - /home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/node_helper.js
0|MagicMir | - /home/serveradmin/MagicMirror/js/app.js
0|MagicMir | - /home/serveradmin/MagicMirror/js/electron.js
0|MagicMir | at Module._resolveFilename (node:internal/modules/cjs/loader:1055:15)
0|MagicMir | at s._resolveFilename (node:electron/js2c/browser_init:2:115476)
0|MagicMir | at Module._resolveFilename (/home/serveradmin/MagicMirror/node_modules/module-alias/index.js:49:29)
0|MagicMir | at Module._load (node:internal/modules/cjs/loader:908:27)
0|MagicMir | at c._load (node:electron/js2c/node_init:2:13672)
0|MagicMir | at Module.require (node:internal/modules/cjs/loader:1122:19)
0|MagicMir | at require (node:internal/modules/helpers:130:18)
0|MagicMir | at Object. (/home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/vendor/ical.js/node-ical.js:2:15)
0|MagicMir | at Module._compile (node:internal/modules/cjs/loader:1256:14)
0|MagicMir | at Module._extensions…js (node:internal/modules/cjs/loader:1311:10)
0|MagicMir | at Module.load (node:internal/modules/cjs/loader:1098:32)
0|MagicMir | at Module._load (node:internal/modules/cjs/loader:945:12)
0|MagicMir | at c._load (node:electron/js2c/node_init:2:13672)
0|MagicMir | at Module.require (node:internal/modules/cjs/loader:1122:19)
0|MagicMir | at require (node:internal/modules/helpers:130:18)
0|MagicMir | at Object. (/home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/vendor/ical.js/index.js:3:12)
0|MagicMir | (Useelectron --trace-warnings ...
to show where the warning was created)
0|MagicMir | [2024-04-30 12:07:20.094] [ERROR] (node:70593) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
0|MagicMir | MESA-INTEL: warning: Bay Trail Vulkan support is incomplete
0|MagicMir | libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed -
@DarrenO-0 said in MMM-CalendarWeek doesn't display:
: Cannot find module ‘request’
yep repeat as before.
don’t do the npm init
see
https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later -
@sdetweil
re-ran “npm install valid-url” in the /modules/ folder and then restarted MM with pm2 restart MagicMIrror.
re-ran pm2 logs --lines=50/home/serveradmin/.pm2/logs/MagicMirror-error.log last 50 lines:
0|MagicMir | - /home/serveradmin/MagicMirror/js/electron.js
0|MagicMir | at Module._resolveFilename (node:internal/modules/cjs/loader:1055:15)
0|MagicMir | at s._resolveFilename (node:electron/js2c/browser_init:2:115476)
0|MagicMir | at Module._resolveFilename (/home/serveradmin/MagicMirror/node_modules/module-alias/index.js:49:29)
0|MagicMir | at Module._load (node:internal/modules/cjs/loader:908:27)
0|MagicMir | at c._load (node:electron/js2c/node_init:2:13672)
0|MagicMir | at Module.require (node:internal/modules/cjs/loader:1122:19)
0|MagicMir | at require (node:internal/modules/helpers:130:18)
0|MagicMir | at Object. (/home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/vendor/ical.js/node-ical.js:2:15)
0|MagicMir | at Module._compile (node:internal/modules/cjs/loader:1256:14)
0|MagicMir | at Module._extensions…js (node:internal/modules/cjs/loader:1311:10)
0|MagicMir | at Module.load (node:internal/modules/cjs/loader:1098:32)
0|MagicMir | at Module._load (node:internal/modules/cjs/loader:945:12)
0|MagicMir | at c._load (node:electron/js2c/node_init:2:13672)
0|MagicMir | at Module.require (node:internal/modules/cjs/loader:1122:19)
0|MagicMir | at require (node:internal/modules/helpers:130:18)
0|MagicMir | at Object. (/home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/vendor/ical.js/index.js:3:12)
0|MagicMir | (Useelectron --trace-warnings ...
to show where the warning was created)
0|MagicMir | [2024-04-30 12:40:31.257] [ERROR] (node:71169) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
0|MagicMir | MESA-INTEL: warning: Bay Trail Vulkan support is incomplete
0|MagicMir | libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
0|MagicMir | /home/serveradmin/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
0|MagicMir | [2024-04-30 12:40:46.686] [ERROR] (node:71403) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘request’
0|MagicMir | Require stack:
0|MagicMir | - /home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/vendor/ical.js/node-ical.js
0|MagicMir | - /home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/vendor/ical.js/index.js
0|MagicMir | - /home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/calendarfetcher.js
0|MagicMir | - /home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/node_helper.js
0|MagicMir | - /home/serveradmin/MagicMirror/js/app.js
0|MagicMir | - /home/serveradmin/MagicMirror/js/electron.js
0|MagicMir | at Module._resolveFilename (node:internal/modules/cjs/loader:1055:15)
0|MagicMir | at s._resolveFilename (node:electron/js2c/browser_init:2:115476)
0|MagicMir | at Module._resolveFilename (/home/serveradmin/MagicMirror/node_modules/module-alias/index.js:49:29)
0|MagicMir | at Module._load (node:internal/modules/cjs/loader:908:27)
0|MagicMir | at c._load (node:electron/js2c/node_init:2:13672)
0|MagicMir | at Module.require (node:internal/modules/cjs/loader:1122:19)
0|MagicMir | at require (node:internal/modules/helpers:130:18)
0|MagicMir | at Object. (/home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/vendor/ical.js/node-ical.js:2:15)
0|MagicMir | at Module._compile (node:internal/modules/cjs/loader:1256:14)
0|MagicMir | at Module._extensions…js (node:internal/modules/cjs/loader:1311:10)
0|MagicMir | at Module.load (node:internal/modules/cjs/loader:1098:32)
0|MagicMir | at Module._load (node:internal/modules/cjs/loader:945:12)
0|MagicMir | at c._load (node:electron/js2c/node_init:2:13672)
0|MagicMir | at Module.require (node:internal/modules/cjs/loader:1122:19)
0|MagicMir | at require (node:internal/modules/helpers:130:18)
0|MagicMir | at Object. (/home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/vendor/ical.js/index.js:3:12)
0|MagicMir | (Useelectron --trace-warnings ...
to show where the warning was created)
0|MagicMir | [2024-04-30 12:40:46.687] [ERROR] (node:71403) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
0|MagicMir | MESA-INTEL: warning: Bay Trail Vulkan support is incomplete
0|MagicMir | libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed -
@DarrenO-0 said in MMM-CalendarWeek doesn't display:
re-ran “npm install valid-url” in the /modules/ folder and then restarted MM with pm2 restart
no…
in the module folder
MMM-CalendarWeek -
@sdetweil
appears to be the same result :/home/serveradmin/.pm2/logs/MagicMirror-error.log last 50 lines:
0|MagicMir | - /home/serveradmin/MagicMirror/js/electron.js
0|MagicMir | at Module._resolveFilename (node:internal/modules/cjs/loader:1055:15)
0|MagicMir | at s._resolveFilename (node:electron/js2c/browser_init:2:115476)
0|MagicMir | at Module._resolveFilename (/home/serveradmin/MagicMirror/node_modules/module-alias/index.js:49:29)
0|MagicMir | at Module._load (node:internal/modules/cjs/loader:908:27)
0|MagicMir | at c._load (node:electron/js2c/node_init:2:13672)
0|MagicMir | at Module.require (node:internal/modules/cjs/loader:1122:19)
0|MagicMir | at require (node:internal/modules/helpers:130:18)
0|MagicMir | at Object. (/home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/vendor/ical.js/node-ical.js:2:15)
0|MagicMir | at Module._compile (node:internal/modules/cjs/loader:1256:14)
0|MagicMir | at Module._extensions…js (node:internal/modules/cjs/loader:1311:10)
0|MagicMir | at Module.load (node:internal/modules/cjs/loader:1098:32)
0|MagicMir | at Module._load (node:internal/modules/cjs/loader:945:12)
0|MagicMir | at c._load (node:electron/js2c/node_init:2:13672)
0|MagicMir | at Module.require (node:internal/modules/cjs/loader:1122:19)
0|MagicMir | at require (node:internal/modules/helpers:130:18)
0|MagicMir | at Object. (/home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/vendor/ical.js/index.js:3:12)
0|MagicMir | (Useelectron --trace-warnings ...
to show where the warning was created)
0|MagicMir | [2024-04-30 12:40:46.687] [ERROR] (node:71403) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
0|MagicMir | MESA-INTEL: warning: Bay Trail Vulkan support is incomplete
0|MagicMir | libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
0|MagicMir | /home/serveradmin/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
0|MagicMir | [2024-04-30 12:56:17.257] [ERROR] (node:71685) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘request’
0|MagicMir | Require stack:
0|MagicMir | - /home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/vendor/ical.js/node-ical.js
0|MagicMir | - /home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/vendor/ical.js/index.js
0|MagicMir | - /home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/calendarfetcher.js
0|MagicMir | - /home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/node_helper.js
0|MagicMir | - /home/serveradmin/MagicMirror/js/app.js
0|MagicMir | - /home/serveradmin/MagicMirror/js/electron.js
0|MagicMir | at Module._resolveFilename (node:internal/modules/cjs/loader:1055:15)
0|MagicMir | at s._resolveFilename (node:electron/js2c/browser_init:2:115476)
0|MagicMir | at Module._resolveFilename (/home/serveradmin/MagicMirror/node_modules/module-alias/index.js:49:29)
0|MagicMir | at Module._load (node:internal/modules/cjs/loader:908:27)
0|MagicMir | at c._load (node:electron/js2c/node_init:2:13672)
0|MagicMir | at Module.require (node:internal/modules/cjs/loader:1122:19)
0|MagicMir | at require (node:internal/modules/helpers:130:18)
0|MagicMir | at Object. (/home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/vendor/ical.js/node-ical.js:2:15)
0|MagicMir | at Module._compile (node:internal/modules/cjs/loader:1256:14)
0|MagicMir | at Module._extensions…js (node:internal/modules/cjs/loader:1311:10)
0|MagicMir | at Module.load (node:internal/modules/cjs/loader:1098:32)
0|MagicMir | at Module._load (node:internal/modules/cjs/loader:945:12)
0|MagicMir | at c._load (node:electron/js2c/node_init:2:13672)
0|MagicMir | at Module.require (node:internal/modules/cjs/loader:1122:19)
0|MagicMir | at require (node:internal/modules/helpers:130:18)
0|MagicMir | at Object. (/home/serveradmin/MagicMirror/modules/MMM-CalendarWeek/vendor/ical.js/index.js:3:12)
0|MagicMir | (Useelectron --trace-warnings ...
to show where the warning was created)
0|MagicMir | [2024-04-30 12:56:17.258] [ERROR] (node:71685) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
0|MagicMir | MESA-INTEL: warning: Bay Trail Vulkan support is incomplete
0|MagicMir | libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed