当上传到 Heroku 时,它会抛出此错误,而在本地主机上运行时不会出现错误。
Here is browser message:
这是我的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
我自己解决了这个问题。
我的文件层次结构:
我正在使用:extends ../LoginLayout/LoginLayout.pug
代替extends ../loginLayout/loginLayout.pug
。注意login
存储时从小写字母开始。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)