addyosmani / addyosmani/backbone-boilerplates

500 Error: Cannot find module 'undefined'

Open
#17 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
485
Forks
165
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.