2017-02-25 18 views
0

Herokuにアップロードすると、このエラーが発生しますが、localhostで実行してもエラーは発生しません。 enter image description hereENOENT:そのようなファイルやディレクトリはありません - pugのエラー

はここに私の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 

答えて

0

私は自分自身これを解決している。

はここでブラウザのメッセージです。

マイファイル階層:

This was my file hierarchy

、私が使っていた: extends ../LoginLayout/LoginLayout.pugの代わりextends ../loginLayout/loginLayout.pugloginが保存されているように小文字で始まることに注意してください。

関連する問題