Repository navigation
MathJax crashes on the very first run but works after hot update. #20332
Unanswered
hopeless-programmer-online
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
MathJax crashes on the very first run but works after hot update.
Description
When the project is being compiled for the very first time (e.g. just after the

npm run dev) it crashes with the following message:This happen only when
MathComponentfrom themathjax-reactpackage is added and only for the very first run.If You comment the corresponding line, refresh the page, uncomment the line back and refresh page again error will disappear. At least until You stop the server and restart it with
npm run dev.Steps to reproduce
npm ito install dependencies.npm run devto start development server.localhost:3000/in browser../pages/index.tsxand comment the 9th line. Text<MathComponent tex={String.raw`\vec{a}`}/>should be replaced with{/* <MathComponent tex={String.raw`\vec{a}`}/> */}.<MathComponent tex={String.raw`\vec{a}`}/>).\vec{a}shows properly (like this).Expected behavior
If it works after comment/uncomment + refresh I expect it to work from the very beginning.
System information
All reactions