-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
On application start-up: "TypeError: Cannot set property 'expose' of undefined" #33
Comments
It looks like you might be using an old version of express that doesn't expose the express app prototype that way that express-expose expects. If you upgrade to express 3 this should fix itself. |
According to
Using the same patch version for different major releases of |
@lbeschastny pull request welcome |
@niftylettuce I don't think that anything could be done about As for As for |
My code for requiring expose looks like this:
------------------BEGIN CODE---------------------
var express = require('express')
, expose = require('express-expose')
, program = require('commander')
, cookie = require('cookie')
, routes = require('./routes')
, api = require('./routes/api.js')
, passport = require('passport')
, BasicStrategy = require('passport-http').BasicStrategy
, config = require('config')
;
program
.version('0.0.1')
.option('-t, --test', 'Run as a test')
.parse(process.argv);
var app = module.exports = express.createServer();
------------------END CODE---------------------
The specific line in express-expose.js throwing the error is line 44.
Please see the attached image...
The text was updated successfully, but these errors were encountered: