瞬间版本: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]
这是在我的项目的已部署版本中发生的,但是我无法在本地重现该错误。