-
Notifications
You must be signed in to change notification settings - Fork 13
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
t.slice is not a function #20
Comments
It's a pity you did not find the TeX code to trigger this issue. What version of MathJax are you using? Do you use an external version of mhchem or the integrated one? |
MathJax 3.2.0, I'm using the tex-svg-full.js built by MathJax. From the code, if any unexpected
Then, err will be an |
@abnerlee Were you able to find TeX input that triggers the issue? |
Sorry, No~ We found it in our sentry server, not from customers' report, so we don't know user's exact input. |
Hi! I had an issue that was similar to this. I am using a library called rehype-mathjax to render my mathjax. Currently rehype-mathjax uses the latest version of mathjax. The issue occurred when I typed \ce in the editor. Note: When I copy and paste the following equation: \ce{CO2 + C -> 2 CO}, it works perfectly fine. However when I am in the process of typing input, then by the time I type \ce that's when I get this error. Please let me know if I can provide anything else to present this issue. Thank you. |
I was able to reproduce this issue with MathJax 3.2.0. It's caused by a missing closing bracket in the input. Try rendering The issue is that the caught error is not an array like the {
id: 'MissingCloseBrace',
message: 'Missing close brace'
} which does not have a |
That demo was very helpful. I think the bug is with MhchemConfiguration. See my comments in the MathJax issue linked above. |
I have made a PR to MathJax-src that addresses the issue. |
Hi, we received an error
t.slice is not a function
in our sentry server. Sorry, I didn't find the TeX script to trigger this issue.But I guess it happens in
where
err
is not anArray
in some cases (maybeError
thrown in some of the logic inside)The text was updated successfully, but these errors were encountered: