Meteor升级到1.0.3.1,现在我得到ReferenceError:时刻没有定义



升级到Meteor 1.0.3.1后,我现在收到这个错误

ReferenceError: moment is not defined

我可以在这里看到,它将momentjs升级到了新版本的

momentjs:moment                  added, version 2.8.4
mrt:moment                       removed from your project
tsega:bootstrap3-datetimepicker  upgraded from 3.1.3_1 to 3.1.3_3

这是我收到错误的第一个地方的代码

var today = new moment().format('MM/DD/YYYY'); 

看起来它应该仍然有效。我试着重新安装它,现在应用程序崩溃了。

其他人有这个问题吗?

我认为Atmosphere上的即时包实际上达到了2.9.0。尝试运行流星更新,或者手动删除moment包(流星删除momentjs:minum)并重新添加它。

此外,您不需要使用新的moment(),只需使用moment(,如下所示:

var today = moment().format('MM/DD/YYYY'); 

最新更新