Everyauth Express Helpers with Express 3.0.0alpha4

427 views
Skip to first unread message

Amjad

unread,
May 29, 2012, 4:13:45 AM5/29/12
to ever...@googlegroups.com
I'm trying to use Everyauth Express Helpers with Express 3.0.0alpha4.
 everyauth.helpExpress(app);
But I get the following error:

node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
TypeError: Object function app(req, res){ app.handle(req, res); } has no method 'dynamicHelpers'
    at Object.helpExpress (/home/amjad/projects/microcommunity/node_modules/everyauth/lib/expressHelper.js:30:7)
    at Object.<anonymous> (/home/amjad/projects/microcommunity/app.js:110:11)
    at Module._compile (module.js:441:26)
    at Object..js (module.js:459:10)
    at Module.load (module.js:348:31)
    at Function._load (module.js:308:12)
    at Array.0 (module.js:479:10)
    at EventEmitter._tickCallback (node.js:192:40)

When I switch to an older version of Express (exactly 2.5.9), this error never shows up.

Is the problem really from the new version of Express?

Many thanks in advance for help!

Amjad

pissedpat

unread,
May 29, 2012, 5:15:33 AM5/29/12
to ever...@googlegroups.com
Well i have learned that this is because express 3 has changed. and the npm install (to date) of everyauth is not compatible to express 3.

so i found this link which shows you how to migrate your helper to express 3.


at the bottom of the page is says install the every auth express 3 version,but it dont work 

you could check out the branch on git hub and install that or just migrate. 

I just re wrote my soudcloud login by hand so i did not need to use everyauth any more,  

hope this helps.

happy coding.

Amjad

unread,
May 30, 2012, 4:36:58 AM5/30/12
to ever...@googlegroups.com
Thank you very much dude :)
--
Sent from my iPad
Reply all
Reply to author
Forward
0 new messages