Open eran-or opened 6 years ago
I try something like: import * as moment from 'moment' import durationFormat from 'moment-duration-format'
console.log(durationFormat(moment())) but getting an error : Cannot set property 'format' of undefined at init
moment is working correctly but 'moment-duration-format' not. please help. how to use it right without other plugins
That what I've already done as you see above: (import * as moment from 'moment' import durationFormat from 'moment-duration-format') strange.
I try something like: import * as moment from 'moment' import durationFormat from 'moment-duration-format'
console.log(durationFormat(moment())) but getting an error : Cannot set property 'format' of undefined at init
moment is working correctly but 'moment-duration-format' not. please help. how to use it right without other plugins