addyosmani / addyosmani/backbone-boilerplates

500 Error: Cannot find module 'undefined'

Đang mở
#17 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
485
Fork
165
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.