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.

    MyCommute 'Loading...' assistance please

    Scheduled Pinned Locked Moved Solved Troubleshooting
    3 Posts 3 Posters 454 Views 3 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.
    • M Offline
      matt216
      last edited by

      Hello,
      Just setting up the MMM-MyCommute module. The config looks ok, but the mirror just displays “Loading…”.
      Using firefox dev tools I can see the following related:

      • 404 on GET http://192.168.0.90:8080/modules/MMM-MyCommute/node_modules/moment-duration-format/lib/moment-duration-format.js

      • Error on loading script: modules/MMM-MyCommute/node_modules/moment-duration-format/lib/moment-duration-format.js

      • The resource from “http://192.168.0.90:8080/modules/MMM-MyCommute/node_modules/moment-duration-format/lib/moment-duration-format.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).

      • Uncaught (in promise) TypeError: moment.duration(…).format is not a function

      The API requests do appear to be coming through to the Google Cloud API.

      Any assistance much appreciated. The error messages point to the module code, not my config. I can’t find anything when I grep ‘commute’ or ‘moment’ in the pm2 logs.

      Thanks

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

        @matt216 sounds like you didn’t do the
        npm install
        in the module folder, after the git clone

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          matt216 @sdetweil
          last edited by

          @sdetweil you are correct, thank you!

          1 Reply Last reply Reply Quote 0
          • 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