当上传到Heroku时,它会抛出这个错误,而在localhost上运行时没有错误。
这是我的display.pug
extends ../LoginLayout/LoginLayout.pug
block content
- var createdAt = requser.local.profile.createdAt
script(type="text/javascript").
$(document).ready(function() {
var createdAt = Date.parse('!{createdAt}');
//- console.log(createdAt);
$('.memberSince')[0].innerHTML = moment(createdAt).fromNow(true);
});
.parallax-container.display
.parallax
img(src=requser.local.profile.herobg)
.container.white-text.center
img.circle(src=requser.local.profile.dp style='width: 200px;')
h1 #{requser.local.name}
h6 Member since #[span.memberSince #{createdAt}] | Lives in #{requser.local.profile.location} | #[strong 232222] points
a.btn.btn-large.blue.darken-3.waves-amber.waves-effect.white-text(href='#') #[i.fa.fa-user-plus.left] Follow