Read the statement by Michael Teeuw here.
MyCommute 'Loading...' assistance please
-
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:-
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
-
@matt216 sounds like you didn’t do the
npm install
in the module folder, after the git clone -
@sdetweil you are correct, thank you!
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