less-middleware does't work - "Express 500 Error: Unrecognised input"

Problem

I'm using Express framework with less-middleware and jade template engine

When I'm trying to get my css file in browser "/css/style.css" - I get the error "Express 500 Error: Unrecognised input"

Here is basic setup in app.js

var app = express();

// all environments
app.set('port', process.env.PORT || 3000);
app.set('views', __dirname + '/views');
app.set('view engine', 'jade');
app.set('view options', {
    layout: false
});
app.use(express.favicon());
app.use(express.logger('dev'));
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(require('less-middleware')({ src: __dirname + '/public' }));
app.use(express.static(path.join(__dirname, 'public')));
app.use(app.router);


// development only
if ('development' == app.get('env')) {
  app.use(express.errorHandler());
}

app.get("/api/places", api.getAllPlaces);
app.get("/api/place/:id", api.getOnePlace);

app.all('*', routes.index);

http.createServer(app).listen(app.get('port'), function(){
  console.log('Express server listening on port ' + app.get('port'));
});

Any help appreciated! Thanks.

Problem courtesy of: Maksym

Solution

That was just typo in *.less file. Thanks!

Solution courtesy of: Maksym

Discussion

There is currently no discussion for this recipe.

This recipe can be found in it's original form on Stack Over Flow.