Skip to content
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

MathpixLoader Error #315

Open
GolliAch opened this issue Mar 28, 2024 · 1 comment
Open

MathpixLoader Error #315

GolliAch opened this issue Mar 28, 2024 · 1 comment
Assignees

Comments

@GolliAch
Copy link

import { MathpixLoader, MathpixMarkdown } from 'mathpix-markdown-it';

export default function A() {
  return (
    <div>
      <MathpixLoader>
        <MathpixMarkdown text="$x = {-b \pm \sqrt{b^2-4ac} \over 2a}$" />
      </MathpixLoader>
    </div>
  );
}

On our NextJs the MathpixLoader gets stuck on "Loading" 80% of the time.
and on the console we see this error:

Error load MathJax => Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'.

@GolliAch
Copy link
Author

For more context:

"mathpix-markdown-it": "^1.3.3",
"next": "14.1.4",
"react": "^18.2.0"

And the error only happens after next build && next start -p 80 and doesn't happen on next dev

@GolliAch GolliAch changed the title [URGENT] MathpixLoader Error MathpixLoader Error Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants