Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MathJax
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MathJax
  • MathJax
  • Issues
  • #2963
Closed
Open
Issue created Nov 09, 2022 by Administrator@rootContributor

why false when user mathjax in node

Created by: TangsWang

import mathjax from 'mathjax'
.....
      mathjax.init({
        loader: {
          load: ['input/tex'],
        }
      })
        .then(mj => {
          if (!mj) {
            reject(`mathjax instance is undefined.`)
          } else {
            mj.tex2mmlPromise(math).then(mml => resolve(mml))
          }
        })
        .catch(err => reject(err.message))

will report error: mathjax instance is undefined.

i was using nuxt3. it is ok on local, but error on vercel. i don't know why?

Assignee
Assign to
Time tracking