Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example not working #2

Open
r0mdau opened this issue Feb 15, 2015 · 6 comments
Open

Example not working #2

r0mdau opened this issue Feb 15, 2015 · 6 comments

Comments

@r0mdau
Copy link

r0mdau commented Feb 15, 2015

node app.js

/.../app.js:51
var app = express.createServer();
^
TypeError: Object function createApplication() {
var app = function(req, res, next) {
app.handle(req, res, next);
};

mixin(app, proto);
mixin(app, EventEmitter.prototype);

app.request = { proto: req, app: app };
app.response = { proto: res, app: app };
app.init();
return app;
} has no method 'createServer'
at Object. (/.../app.js:51:19)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3

@r0mdau
Copy link
Author

r0mdau commented Feb 15, 2015

The package.json file doesn't contains fixed versions of modules...

@kevinxh
Copy link

kevinxh commented Jan 13, 2016

The example is out-dated.

let's update it.

@Zrce
Copy link

Zrce commented Jan 16, 2016

an update would be great. @kevinxh have you found another solution.

@kevinxh
Copy link

kevinxh commented Jan 16, 2016

@Zrce I submitted a pull request to update the example.

@kevinxh
Copy link

kevinxh commented Jan 16, 2016

@Zrce in the meanwhile just use my forked repo :)

@pbojinov
Copy link

pbojinov commented May 9, 2017

@jaredhanson Any chance to get this merged? #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants