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

Cannot convert undefined or null to object #10

Closed
Ostaer opened this issue Jan 21, 2018 · 2 comments
Closed

Cannot convert undefined or null to object #10

Ostaer opened this issue Jan 21, 2018 · 2 comments

Comments

@Ostaer
Copy link

Ostaer commented Jan 21, 2018

Hello, I have got an error,

apidoc-markdown2 -p test -o api.rd

undefined:25
  throw err;
  ^

TypeError: ejs:37
    35| <% }); //forech parameter -%>
    36| <% } //if parameters -%>
 >> 37|
    38| <% if (data[group][sub][0].header && data[group][sub][0].header.examples && data[group][sub][0].header.examples.length) { -%>
    39|
    40| ### Header Examples

Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at eval (eval at exports.compile (C:\Users\name\AppData\Roaming\npm\node_modules\apidoc-markdown2\node_modules\ejs\lib\ejs.js:237:14), <anonymous>:34:116)
    at Array.forEach (<anonymous>)
    at eval (eval at exports.compile (C:\Users\name\AppData\Roaming\npm\node_modules\apidoc-markdown2\node_modules\ejs\lib\ejs.js:237:14), <anonymous>:30:958)
    at Array.forEach (<anonymous>)
    at eval (eval at exports.compile (C:\Users\name\AppData\Roaming\npm\node_modules\apidoc-markdown2\node_modules\ejs\lib\ejs.js:237:14), <anonymous>:30:833)
    at eval (eval at exports.compile (C:\Users\name\AppData\Roaming\npm\node_modules\apidoc-markdown2\node_modules\ejs\lib\ejs.js:237:14), <anonymous>:48:19)
    at C:\Users\name\AppData\Roaming\npm\node_modules\apidoc-markdown2\node_modules\ejs\lib\ejs.js:250:15
    at Object.<anonymous> (C:\Users\name\AppData\Roaming\npm\node_modules\apidoc-markdown2\index.js:88:31)
    at Module._compile (module.js:643:30)
@softdevstory
Copy link
Owner

Could you attach test data?

@Ostaer
Copy link
Author

Ostaer commented Feb 1, 2018

@softdevstory
Thanks for you replay, The following is the test apidoc data, it will throw that error,

test.zip

softdevstory added a commit that referenced this issue Feb 15, 2018
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

No branches or pull requests

2 participants