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
  • #2358
Closed
Open
Issue created Feb 26, 2020 by Administrator@rootContributor

Problems cloning MathJax-src repo

Created by: ghost

I am looking to clone the MathJax source repo and I am running into errors when compiling with TypeScript.

I ran npm install, npm update and tried updating Node and npm, but I still get the following errors when trying to run npm run install:

ts/a11y/sre-node.ts:25:15 - error TS2451: Cannot redeclare block-scoped variable 'require'.

25 declare const require: (name: string) => any; ~~~~~~~

../node_modules/@types/node/globals.d.ts:222:13 222 declare var require: NodeRequire; ~~~~~~~ 'require' was also declared here.

ts/a11y/sre-node.ts:29:15 - error TS2451: Cannot redeclare block-scoped variable 'global'.

29 declare const global: any; ~~~~~~

../node_modules/@types/node/globals.d.ts:167:13 167 declare var global: NodeJS.Global; ~~~~~~ 'global' was also declared here.

../node_modules/@types/node/globals.d.ts:167:13 - error TS2451: Cannot redeclare block-scoped variable 'global'.

167 declare var global: NodeJS.Global; ~~~~~~

ts/a11y/sre-node.ts:29:15 29 declare const global: any; ~~~~~~ 'global' was also declared here.

../node_modules/@types/node/globals.d.ts:222:13 - error TS2451: Cannot redeclare block-scoped variable 'require'.

222 declare var require: NodeRequire; ~~~~~~~

ts/a11y/sre-node.ts:25:15 25 declare const require: (name: string) => any; ~~~~~~~ 'require' was also declared here.

Found 4 errors.

npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! mathjax-full@3.0.1 compile: npx tsc npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the mathjax-full@3.0.1 compile script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

The log file: 2020-02-26T21_05_03_551Z-debug.log

Since I believe that the current commit should most likely compile, I think I must have something wrong with my versions of TypeScript or whatever, but I already checked it using npx tsc -v and it was the same as listed in the devDependencies.

I would really appreciate some help here, since I am actually really keen on getting into MathJax and extending it for my purpose.

Assignee
Assign to
Time tracking