Read the statement by Michael Teeuw here.
Error while starting Magic Mirror
-
Hey guys,
I am not able to start my Magic Mirror with the command pm2 start MagicMirror.There is always this error:
[21.01.2022 14:17.17.199] [ERROR] Whoops! There was an uncaught exception... [21.01.2022 14:17.17.201] [ERROR] TypeError: Cannot read properties of undefined (reading 'on') at Object.<anonymous> (/home/pi/MagicMirror/js/electron.js:104:5) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Object.<anonymous> (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:33:23) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12)
I have only installed Spotify and calender_monthly module. Yesterday everythink works fine, now nothing works without changing anything
-
@1blaunitrox that looks like a bad position for a module
module:
position: ???see the list here
https://docs.magicmirror.builders/modules/configuration.html -
This is my config:
modules: [ { module: "alert", }, { module: "updatenotification", position: "top_bar" }, { module: "clock", position: "top_left" }, { module: "calendar_monthly", position: "top_left", config: { } }, { module: "weather", position: "top_right", config: { weatherProvider: "openweathermap", type: "current", location: "mycity", locationID: "cityID", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city apiKey: "mykey" } }, { module: "weather", position: "top_right", header: "Wettervorhersage", config: { weatherProvider: "openweathermap", type: "forecast", location: "mycity", locationID: "cityID", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city apiKey: "mykey" } }, { module: "MMM-NowPlayingOnSpotify", position: "bottom_left", config: { clientID: "myid", clientSecret: "myid", accessToken: "mytoken", refreshToken: "mytoken" } }, ]
-
@1blaunitrox I don’t see a calendar_monthly module
-
@sdetweil What do you mean?
-
@1blaunitrox thx… I used your module list and dont see any issues…
you did npm install in both new module folders, right?
-
@sdetweil no, it worked without
-
@1blaunitrox both modules provide a package.json file, which means u must
npm install
in their folders -
@1blaunitrox my mistake. I did it
-
@1blaunitrox did u update MM?? git pull?
did you npm install after?