Skip to content

JavaScript error: Uncaught Error: Token with "list_end" type was not found. #1027

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

Closed
Acconitum opened this issue Feb 18, 2020 · 7 comments
Closed
Labels

Comments

@Acconitum
Copy link

Bug Report

Steps to reproduce

  • Include multiple files
  • Reload page

What is current behaviour

Fails to load content after the coverpage.md and shows following error message in developer console:

docsify.min.js:1 Uncaught Error: Token with "list_end" type was not found.
at c.tok (docsify.min.js:1)
at c.parse (docsify.min.js:1)
at Function.c.parse [as parser] (docsify.min.js:1)
at docsify.min.js:1
at docsify.min.js:1
at se.compile (docsify.min.js:1)
at docsify.min.js:1
at docsify.min.js:1
at docsify.min.js:1
at XMLHttpRequest. (docsify.min.js:1)

What is the expected behaviour

Content getting loaded as expected with no JavaScript-Errors

Other relevant information

As mentioned the error occures not everytime I reload the page.
It looks like there is an async problem behind this error.
I think, the token "list_end" sometimes getting added milliseconds to slow before antoher function makes use of it.

Possibly related to #970 -> Getting same issues on top.

JavaScript delivered locally. (No difference when loading via CDN)

  • [x ] Bug does still occur when all/other plugins are disabled?

  • Your OS: Windows 10

  • Node.js version: 12.14.1

  • npm/yarn version: npm 6.13.4

  • Browser version: Google Chrome 79.0.3945.130

  • Docsify version: latest

  • Docsify plugins: search -> latest

@anikethsaha
Copy link
Member

can you share a reproducible repo! maybe a sandbox. hard to debug this way

@Acconitum
Copy link
Author

Hi anikethsaha

I've created a repo for you:

https://github.com/Acconitum/docsify-testrepo

@anikethsaha
Copy link
Member

Hi anikethsaha

I've created a repo for you:

https://github.com/Acconitum/docsify-testrepo

Thanks a lot . I will check this soon

@anikethsaha
Copy link
Member

@Acconitum I checked. everything is working fine. I reloaded several times , didnt get any error in console.

@Acconitum
Copy link
Author

@anikethsaha I did some tests on different machines and I where able to reproduce the error. on every instance.

As I mentioned the error does not trigger every time. Would you mind to add some more inclusions and test again?

I'm sorry that I can't give yu more information. The error follows no special rule to reproduce. It appears very radomly.

@anikethsaha
Copy link
Member

ok. I will do some test if I get some time. 👍

@stale
Copy link

stale bot commented Apr 18, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

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

2 participants