MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Default calendary broke on v2.22.0 update

    Scheduled Pinned Locked Moved Solved Troubleshooting
    3 Posts 2 Posters 676 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      Apathia
      last edited by

      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/issues
      

      I 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?

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Apathia
        last edited by

        @Apathia sounds like the npm install was not successful.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        A 1 Reply Last reply Reply Quote 0
        • A Offline
          Apathia @sdetweil
          last edited by

          @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.

          1 Reply Last reply Reply Quote 0

          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
          • 1 / 1
          • First post
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy