Skip to content

Uncaught ReferenceError: global is not defined #363

Description

@devops724

AsciiMath.js:1 Uncaught ReferenceError: global is not defined
at node_modules/mathjax-full/js/input/asciimath/mathjax2/input/AsciiMath.js (AsciiMath.js:1:25)
at __require2 (chunk-JJ3PYKI2.js?v=00b9f799:16:50)
at node_modules/mathjax-full/js/input/asciimath.js (asciimath.ts:25:1)
at __require2 (chunk-JJ3PYKI2.js?v=00b9f799:16:50)
at node_modules/mathpix-markdown-it/lib/mathjax/mathjax.js (mathjax.ts:6:1)
at __require2 (chunk-JJ3PYKI2.js?v=00b9f799:16:50)
at node_modules/mathpix-markdown-it/lib/mathjax/index.js (index.ts:1:1)
at __require2 (chunk-JJ3PYKI2.js?v=00b9f799:16:50)
at node_modules/mathpix-markdown-it/lib/markdown/md-ascii/index.js (index.ts:2:1)
at __require2 (chunk-JJ3PYKI2.js?v=00b9f799:16:50)
at
MathJax = Object.assign(global.MathJax || {}, require("../legacy/MathJax.js").MathJax);
i want use
import { MathpixMarkdownModel } from 'mathpix-markdown-it';

in vue 3
run dev with vite

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions