addyosmani / addyosmani/backbone-boilerplates

500 Error: Cannot find module 'undefined'

オープン
#17 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
485
フォーク
165
PR マージ指標
30日以内にマージされた PR はありません

説明

Thanks for your example. It really helps.

There is an issue here. When I try to run option1, there is an error "500 Error: Cannot find module 'undefined'".

After I repalce the code in app.js

``` javascript
app.get('/todo', function(req, res){
res.render('todo', {title: "MongoDB Backed TODO App"});
});
```

with code like this

``` javascript
app.get('/todo', function(req, res){
res.sendfile(__dirname + '/public/static.html');
});
```

It works just fine. Why?
If it's an bug, would you fix it?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。