Skip to content

grunt server fails with grunt-contrib-connect 0.11.x #1

@skogdoom

Description

@skogdoom

Great example, but the command "grunt server" fails with the following error message:

Warning: Object function createServer() {
function app(req, res, next){ app.handle(req, res, next); }
merge(app, proto);
merge(app, EventEmitter.prototype);
app.route = '/';
app.stack = [];
return app;
} has no method 'static' Use --force to continue.

This is due to grunt-contrib-connect 0.11.x.

It works fine with version 0.10.x though, so to fix it just install grunt-contrib-connect with the version specified when you install the packages necessary to run the example:

npm install grunt grunt-contrib-less grunt-contrib-connect@0.10.1 grunt-contrib-watch grunt-open matchdep connect-livereload --save-dev

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions