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

removed director and resourceful from dependencies #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

elbird
Copy link

@elbird elbird commented Apr 13, 2013

removed duplicate entries
director and resourceful are already included in peer dependencies

this caused an error when using restful as standalone server with relational resources. because restful used a diffent resourceful than the calling application the routes for the children resources could not be created

the stacktrace of the error:

C:\myproject\node_modules\restful\lib\restful.js:228
    var entity = resource.lowerResource,
                         ^
TypeError: Cannot read property 'lowerResource' of undefined
    at C:\myproject\node_modules\restful\lib\restful.js:228:26

    at Array.forEach (native)
    at _extend (C:\myproject\node_modules\restful\lib\restful.js:227:13)
    at C:\myproject\node_modules\restful\lib\restful.js:322:13

    at Array.forEach (native)
    at null. (C:\myproject\node_modules\restful\lib\restful.js:313:30)
    at Router.path (C:\myproject\node_modules\director\lib\director\router.js:305:12)
    at null. (C:\myproject\node_modules\restful\lib\restful.js:298:12)
    at Router.path (C:\myproject\node_modules\director\lib\director\router.js:305:12)
    at C:\myproject\node_modules\restful\lib\restful.js:242:12

removed duplicate entries
director and resourceful are already included in peer dependencies
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

Successfully merging this pull request may close these issues.

1 participant