在Moment.js中格式化日期时输入错误?

时间:2019-02-12 21:32:23

标签: momentjs moment-timezone google-chrome-console

瞬间版本:2.24.0

使用moment.js设置日期格式时,如下所示:

const label = moment(new Date()).format("dddd, MMM D")

我收到一个控制台错误,内容为:

    Uncaught TypeError: Cannot read property 'standalone' of undefined
    at Locale.localeMonthsShort [as monthsShort]
    at Moment.<anonymous>
    at Object.dddd, MMM D
    at formatMoment 
    at Moment.format$1 [as format] 

这是在我的项目的已部署版本中发生的,但是我无法在本地重现该错误。

0 个答案:

没有答案