fast-reflexes / better-react-mathjax

MIT License
124 stars 16 forks source link

Error: Typesetting failed: Cannot read properties of null (reading 'contains') #59

Closed whlshy closed 4 months ago

whlshy commented 4 months ago

What wrong about this?

image image

This result appears when I use @tanstack/react-query.

image

If I comment this line it doesn't happen.

whlshy commented 4 months ago

Oh, maybe should have to wait MathJaxContext loaded

fast-reflexes commented 4 months ago

I really need more context to understand why this happens :) As long as you have a MathjaxContext it should be enough ... does this happen when you start the project locally? If so, if you give me access, I can have a look.

whlshy commented 4 months ago

https://codepen.io/whlshy/pen/JjVmNQz?editors=0011#

image

fast-reflexes commented 4 months ago

I can't trigger that error ... When I go to that URL and click refetch, it works out fine and I get no errors in the console.

Few tips:

Let me know what exactly is the problem here because I can't replicate and everything seems to be working fine :D

fast-reflexes commented 4 months ago

I will close this in a few days if you can't elaborate on what is wrong so that I can troubleshoot it :)

fast-reflexes commented 4 months ago

Can't troubleshoot this since information lacks. Feel free to reopen with more info.