Read the statement by Michael Teeuw here.
Default calendary broke on v2.22.0 update
-
Upon starting Magicmirror, I’m met with the following errors:
[ERROR] WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: /home/MagicMirror/node_modules/axios/index.js:1 import axios from './lib/axios.js'; ^^^^^ SyntaxError: Unexpected identifier at Module._compile (internal/modules/cjs/loader.js:723:23) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issuesI disabled addons until I could get Magicmirror to launch properly and found it was the default calendar module that was the issue with the config as follows:
{ module: "calendar", position: "top_left", disabled: false, config: { MaxTitleLength: 50, hideTime: true, maximumEntries: 10, showEnd: false, timeFormat: 'absolute', displaySymbol: false, getRelative: 48, fade: false, urgency: 7, titleReplace: { '(regional holiday)' : '', 'Words word words' : '', 'More words words' : '', 'Wooooorrrds' : '' }, nextDaysRelative: true, calendars: [ { url: "https://calendar.google.com/calendar/ical/en.canadian%23holiday%40group.v.calendar.google.com/public/basic.ics", }, { url: "https://calendar.google.com/calendar/ical/%40gmail.com/private-/basic.ics" }, { url: "https://othermoredifferent.com/calendar/8C3446E21A9A4D5F42BD67625622D4E0.ics" } ], excludedEvents: [ 'Quebec','Prince Edward Island','Manitoba','Nova Scotia','Yukon','Alberta','British Columbia', 'Saskatchewan','Newfoundland and Labrador','Nunavut','New Brunswick','Commonwealth','Tartan','Vimy Ridge', 'Indigenous','' ], } },I tried commenting out everything except the public google calendar and even all the default config settings but it still fails to load. Any ideas why?
-
@Apathia sounds like the npm install was not successful.
-
@sdetweil said in Default calendary broke on v2.22.0 update:
@Apathia sounds like the npm install was not successful.
You are probably correct. After it failing even after going to the helper module directory and running npm install again, I decided to update both npm and nodejs which fixed the issue. I was on npm v7.21 and node v10.24, now on npm v9.2 and node v16.10.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login