Read the statement by Michael Teeuw here.
Electron error since the last MM update
-
Hello,
Since 2.16 update my MM does not work…
I do not understand this logWhat electron version is needed ?
1|MagicMirror | Starting MagicMirror: v2.16.0 1|MagicMirror | [13.08.2021 14:07.27.380] [ERROR] 1|MagicMirror | TypeError: Cannot read property 'on' of undefined 1|MagicMirror | at Object.<anonymous> (/home/pi/MagicMirror/js/electron.js:98:5) 1|MagicMirror | at Module._compile (internal/modules/cjs/loader.js:778:30) 1|MagicMirror | at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) 1|MagicMirror | at Module.load (internal/modules/cjs/loader.js:653:32) 1|MagicMirror | at tryModuleLoad (internal/modules/cjs/loader.js:593:12) 1|MagicMirror | at Function.Module._load (internal/modules/cjs/loader.js:585:3) 1|MagicMirror | at Object.<anonymous> (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:32:23) 1|MagicMirror | at Module._compile (internal/modules/cjs/loader.js:778:30) 1|MagicMirror | at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) 1|MagicMirror | at Module.load (internal/modules/cjs/loader.js:653:32) 1|MagicMirror | [13.08.2021 14:07.27.408] [ERROR] 1|MagicMirror | Whoops! There was an uncaught exception... 1|MagicMirror | [13.08.2021 14:07.27.410] [ERROR] TypeError: Cannot read property 'on' of undefined 1|MagicMirror | at Object.<anonymous> (/home/pi/MagicMirror/js/electron.js:98:5) 1|MagicMirror | at Module._compile (internal/modules/cjs/loader.js:778:30) 1|MagicMirror | at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) 1|MagicMirror | at Module.load (internal/modules/cjs/loader.js:653:32) 1|MagicMirror | at tryModuleLoad (internal/modules/cjs/loader.js:593:12) 1|MagicMirror | at Function.Module._load (internal/modules/cjs/loader.js:585:3) 1|MagicMirror | at Object.<anonymous> (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:32:23) 1|MagicMirror | at Module._compile (internal/modules/cjs/loader.js:778:30) 1|MagicMirror | at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) 1|MagicMirror | at Module.load (internal/modules/cjs/loader.js:653:32) 1|MagicMirror | [13.08.2021 14:07.27.412] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 1|MagicMirror | [13.08.2021 14:07.27.413] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issu
-
I undestood your language. But I didn’t understand what to do :D
Now It works !!
I did not know this command :npm install request
You are my man thanks a lot ! And you script is great
-
@thymon this looks related to pm2., so I would reinstall it.
u could try my fixuppm2 script from
https://github.com/sdetweil/MagicMirror_scripts
last one in the list.
-
Thx for your interest.
Where can I put this script ?sudo ./update.sh It appears MagicMirror has not been installed on this system please run the installer, raspberry.sh first
I tried in :
~/
~/MagicMirror
~/MagicMirror/installers -
@thymon said in Electron error since the last MM update:
Where can put this script ?
u just run it from the instructions on the github page
fixuppm2.sh, cut/paste this line into the terminal window on your device
copy paste the one line
-
I am sorry :) It’s my bad english :downcast_face_with_sweat:
Thx so much !!
So now it’s a module issue.|MagicMirror | [13.08.2021 16:36.53.743] [ERROR] 0|MagicMirror | App threw an error during load 0|MagicMirror | [13.08.2021 16:36.53.748] [ERROR] Error: Cannot find module 'rrule-alt' 0|MagicMirror | Require stack: 0|MagicMirror | - /home/pi/MagicMirror/modules/MMM-MyCalendar/vendor/ical.js/node-ical.js 0|MagicMirror | - /home/pi/MagicMirror/modules/MMM-MyCalendar/vendor/ical.js/index.js 0|MagicMirror | - /home/pi/MagicMirror/modules/MMM-MyCalendar/calendarfetcher.js 0|MagicMirror | - /home/pi/MagicMirror/modules/MMM-MyCalendar/node_helper.js 0|MagicMirror | - /home/pi/MagicMirror/js/app.js 0|MagicMirror | - /home/pi/MagicMirror/js/electron.js 0|MagicMirror | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js 0|MagicMirror | - 0|MagicMirror | at Module._resolveFilename (internal/modules/cjs/loader.js:972:15) 0|MagicMirror | at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921) 0|MagicMirror | at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) 0|MagicMirror | at Module._load (internal/modules/cjs/loader.js:848:27) 0|MagicMirror | at Function.f._load (electron/js2c/asar_bundle.js:5:12633) 0|MagicMirror | at Module.require (internal/modules/cjs/loader.js:1032:19) 0|MagicMirror | at require (internal/modules/cjs/helpers.js:72:18) 0|MagicMirror | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-MyCalendar/vendor/ical.js/node-ical.js:20:13) 0|MagicMirror | at Module._compile (internal/modules/cjs/loader.js:1152:30) 0|MagicMirror | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10) 0|MagicMirror | at Module.load (internal/modules/cjs/loader.js:992:32) 0|MagicMirror | at Module._load (internal/modules/cjs/loader.js:885:14) 0|MagicMirror | at Function.f._load (electron/js2c/asar_bundle.js:5:12633) 0|MagicMirror | at Module.require (internal/modules/cjs/loader.js:1032:19) 0|MagicMirror | at require (internal/modules/cjs/helpers.js:72:18) 0|MagicMirror | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-MyCalendar/vendor/ical.js/index.js:3:12) 0|MagicMirror | at Module._compile (internal/modules/cjs/loader.js:1152:30) 0|MagicMirror | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10) 0|MagicMirror | at Module.load (internal/modules/cjs/loader.js:992:32) 0|MagicMirror | at Module._load (internal/modules/cjs/loader.js:885:14) 0|MagicMirror | at Function.f._load (electron/js2c/asar_bundle.js:5:12633) 0|MagicMirror | at Module.require (internal/modules/cjs/loader.js:1032:19) 0|MagicMirror | [13.08.2021 16:36.53.752] [ERROR] 0|MagicMirror | Whoops! There was an uncaught exception...
I tried this without success :
cd ~/MagicMirror/modules/MMM-MyCalendar npm init
npm install valid-url --save
I followed your answer from another topic
-
check the messages again, there are 3 libraries we see this with
-
I am confused but I don’t understand…
-
@thymon >| [13.08.2021 16:36.53.748] [ERROR] Error: Cannot find module ‘rrule-alt’
did u npm install rrule-alt?
did u npm install requestcheck the messages, in the same place u saw valid-url and make sure there are no more errors…
(use google translate to get my text in your language)
-
I undestood your language. But I didn’t understand what to do :D
Now It works !!
I did not know this command :npm install request
You are my man thanks a lot ! And you script is great