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

TypeError: body.schemaContent is not a function #14

Open
adanieljsinclair opened this issue Jul 15, 2016 · 1 comment
Open

TypeError: body.schemaContent is not a function #14

adanieljsinclair opened this issue Jul 15, 2016 · 1 comment
Labels

Comments

@adanieljsinclair
Copy link

After working past the node-sass issue, I got this, which I worked around by checking the reference in the source. I'm not sure what would cause this?

C:\Program Files\nodejs\node_modules\ramlo\src\modules\api.js:281
var sch = body.schemaContent();
^

TypeError: body.schemaContent is not a function
at C:\Program Files\nodejs\node_modules\ramlo\src\modules\api.js:281:32
at arrayEach (C:\Program Files\nodejs\node_modules\ramlo\node_modules\lodash\lodash.js:451:11)
at Function.forEach (C:\Program Files\nodejs\node_modules\ramlo\node_modules\lodash\lodash.js:8634:14)
at C:\Program Files\nodejs\node_modules\ramlo\src\modules\api.js:278:15
at arrayEach (C:\Program Files\nodejs\node_modules\ramlo\node_modules\lodash\lodash.js:451:11)
at Function.forEach (C:\Program Files\nodejs\node_modules\ramlo\node_modules\lodash\lodash.js:8634:14)
at produceResponseBody (C:\Program Files\nodejs\node_modules\ramlo\src\modules\api.js:273:7)
at C:\Program Files\nodejs\node_modules\ramlo\src\modules\api.js:99:27
at arrayEach (C:\Program Files\nodejs\node_modules\ramlo\node_modules\lodash\lodash.js:451:11)
at Function.forEach (C:\Program Files\nodejs\node_modules\ramlo\node_modules\lodash\lodash.js:8634:14)

@kamilzasada kamilzasada added this to the Release Candidate milestone Jul 17, 2016
Plackier pushed a commit that referenced this issue Jul 27, 2016
@kamilzasada kamilzasada added the bug label Sep 3, 2016
@shilov
Copy link

shilov commented Sep 12, 2016

Bumped into a similar issue:

/usr/local/lib/node_modules/ramlo/src/modules/api.js:246
    if (Object.keys(ramlBody).length > 0 && _.isFunction(body.schemaContent)) {
                                                         ^

ReferenceError: body is not defined
    at produceRequestBody (/usr/local/lib/node_modules/ramlo/src/modules/api.js:246:58)
    at /usr/local/lib/node_modules/ramlo/src/modules/api.js:98:26
    at arrayEach (/usr/local/lib/node_modules/ramlo/node_modules/lodash/lodash.js:522:11)
    at Function.forEach (/usr/local/lib/node_modules/ramlo/node_modules/lodash/lodash.js:9011:14)
    at produceEndpoints (/usr/local/lib/node_modules/ramlo/src/modules/api.js:81:7)
    at /usr/local/lib/node_modules/ramlo/src/modules/api.js:66:42
    at arrayEach (/usr/local/lib/node_modules/ramlo/node_modules/lodash/lodash.js:522:11)
    at Function.forEach (/usr/local/lib/node_modules/ramlo/node_modules/lodash/lodash.js:9011:14)
    at produceResources (/usr/local/lib/node_modules/ramlo/src/modules/api.js:45:7)
    at module.exports (/usr/local/lib/node_modules/ramlo/src/modules/api.js:688:26)

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

No branches or pull requests

3 participants