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

Marked.js error: while (this.next().type !== 'list_item_end') { #6

Closed
machal opened this issue Jul 28, 2014 · 4 comments
Closed

Marked.js error: while (this.next().type !== 'list_item_end') { #6

machal opened this issue Jul 28, 2014 · 4 comments

Comments

@machal
Copy link

machal commented Jul 28, 2014

My grunt-styledocco worked well but now I am getting this error message.

Any ideas where I can start debugging?

Running "styledocco:dist" (styledocco) task
>> Error: 
>> /usr/local/lib/node_modules/styledocco/node_modules/marked/lib/marked.js:951
>>       while (this.next().type !== 'list_item_end') {
>>                         ^
>> TypeError: Cannot read property 'type' of undefined
>>     at Parser.tok (/usr/local/lib/node_modules/styledocco/node_modules/marked/lib/marked.js:951:25)
>>     at Parser.tok (/usr/local/lib/node_modules/styledocco/node_modules/marked/lib/marked.js:937:22)
>>     at Parser.parse (/usr/local/lib/node_modules/styledocco/node_modules/marked/lib/marked.js:797:17)
>>     at Function.Parser.parse [as parser] (/usr/local/lib/node_modules/styledocco/node_modules/marked/lib/marked.js:784:17)
>>     at /usr/local/lib/node_modules/styledocco/styledocco.js:155:35
>>     at Array.map (native)
>>     at exports.makeSections (/usr/local/lib/node_modules/styledocco/styledocco.js:150:6)
>>     at module.exports (/usr/local/lib/node_modules/styledocco/styledocco.js:162:10)
>>     at /usr/local/lib/node_modules/styledocco/cli.js:289:22
>>     at fs.js:271:14
>> Code: 8
@franklinkim
Copy link
Member

mmh, not quite sure where to start really... it's actually nothing with this grunt plugin as the stack goes into the styledocco package itself. so you might wanna ask the styldocco guys in this case...

here are my versions anyway, which pass the test, might help:

@machal
Copy link
Author

machal commented Jul 30, 2014

I have exactly the same tree.
I filled out issue for styledocco guys too: jacobrask/styledocco#122
Thanks for answering.

@franklinkim
Copy link
Member

you're welcome! Btw, have you tried to run the styldocco command itself without the grunt wrapper?

@machal
Copy link
Author

machal commented Jul 30, 2014

Yeah, and result is the same. Then I will continue my asking in styledocco repo issues.

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