Closed IdoPrinc3 closed 12 months ago
Hi, thanks for the input, after reading a bit I think that the problem is the time that MM2 takes in loading the libraries, as moment-duration-format depends on moment. As suggested by a couple of stackoverflow threads adding
import momentDurationFormatSetup from 'moment-duration-format'; momentDurationFormatSetup(moment);
maybe solves the issue. I'm going to try to use .utc() to see if the problem persist, but I'm probably going to change to a function to convert the time without using a dependency just for that.
issue
https://github.com/Fabrizz/MMM-OnSpotify/blob/d0db7cad518e14fd61d15478f49bce6b8d924158/utils/SpotifyDomBuilder.js#L769-L771
I had problems with the "format"" function, telling me it didn't exists so I changed it to "utc" instead of "duration".
My Fix
packages version