MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.25.0 is available! For more information about this release, check out this topic.

    SOLVED MyCommute 'Loading...' assistance please

    Troubleshooting
    3
    3
    187
    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
      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
        sdetweil @matt216 last edited by

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

        Sam

        Create a working config
        How to add modules

        M 1 Reply Last reply Reply Quote 0
        • M
          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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy