Closed Couto closed 12 years ago
+1 I'd like to know, too.
btw, router
is now Router
in express3, so above error is easy to circumvent.
but again, express.HTTPServer which is not defined in express3 due to the structural change causes an error at line 252.
+1
+1
+1
+1
+1
+1
+1
+1
express-resource for express3 would be great!
+1
+1
Change router to upper case and on line 252 change express.HTTPServer.prototype to app
so it's app.resource
It's probably a flawed fix, though it works to get it running.
didn't work for me... though I may not have edited it correctly
The latest fix for this is to add "methods" as a dependency of express-resource, and then use do
require('methods').concat(['del', 'all']).forEach(function(method){
that got me past the original error, but then I hit what I think @danschumann was fixing. However I couldn't get his solution to work.
Tied all of the above with no joy
+1
+1
+1
Is @visionmedia still working on this? It looks like the express 3 compatibility branch hasn't been touched in over a month.
+1 extra-bump shin-kick
+1
+1 This is the only thing keeping me on express2.
I'll add my +1, but also mention that TJ started working on this last month. Check out the branch if you think you can help out.
https://github.com/visionmedia/express-resource/tree/add/express3x-support
Also, see #61. It's not as straight forward as it seems.
+1
+1
+1
+1
+1 :) Any way I can help?
Everyone who has +1ed this issue:
Take a look at the examples "resource" and "MVC" in the express repo. It's super easy to create your own "resource" middleware. I don't think anyone should waste the time to make this module compatible with express3 because auto-loading routes for resources is already built right in (with some improvements).
I'm currently using express 3.0.0alpha1-pre (ok, i know it's alpha) and express-resource 0.2.4 (from npm) As soon as I require express-resource i get this error:
That line refers to the following code block
My main question is: Are you planning to make express-resource compatible with Express 3, if so, do you have any ETA? Thanks for your time =)