-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 read property 'children' of null #2192
Comments
From the error logged, I see that this line is the problem but the function But that's about as much as I can help you with the information you provided. The problem is that the Line Highlight plugin seems to be executed before the Line Numbers plugin, which means that Line Highlight will try to the line numbers of a code block that don't yet exist. Is that really the full stack trace of the error? |
Cannot reproduce + no further information provided |
Looks to be triggered via resizing the window Is there a codepen or jsfiddle template for creating the issue with the necessary plugins? unrelated.. |
No, there isn't a template. You can also upload a .zip file with a little project. Anything that reproduces the issue is fine.
Will fix. |
sorry for the delay.. I've just been living with the console errors.. I'm using the manual option... due to hidden/dynamic content
line number plugin is listening for window resize
which appears to try to iterate over all but it can't re-render what hasn't been rendered to begin with
resize listener should additionally filter pre[data-line] and only call highlightLines on code that's already been highlighted |
Thank you for the detailed explanation! I'll make a fix. |
Awesome! |
Information:
Description
Error thrown in console
Example
I'll attempt to create one... I can't tell what's triggering this issue
The text was updated successfully, but these errors were encountered: