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!