Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

messageList is not definedについて #2

Open
Randle5118 opened this issue Apr 19, 2018 · 1 comment
Open

messageList is not definedについて #2

Randle5118 opened this issue Apr 19, 2018 · 1 comment

Comments

@Randle5118
Copy link

突然のご質問して失礼しました。

こちらの通りにままやらせていただきまして、
---Node.jsで詳細ページを作ってみよう---の所の
---メッセージを表示させてみよう--がエラーが出てきました。

メッセージ内容はmessageList is not definedになります。
エラー項目の中でいじったものとしては、
at Query._callback (/Users/*****/firstnodeapp/routes/boards.js:10:9)
になります。

原因がお分かりの方、御教授をいただければ幸いでございます。
よろしくお願いします。

@osamu38
Copy link
Owner

osamu38 commented May 8, 2018

@Randle5118

messageList is not definedmessageListという変数が未定義な状態を示しています。
おそらくroutes/boards.jsではなく、views/board.ejs<% if (messageList.length) { %>の行で変数が渡って来ていないためエラーになっていると思う。

もしこの説明でもわからない場合はソースコードをまるっとコピペすると良いかと!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants