Skip to content
This repository has been archived by the owner on Nov 24, 2020. It is now read-only.

Error with plugin "mathjax": #44

Open
Wind0ranger opened this issue Oct 15, 2019 · 5 comments
Open

Error with plugin "mathjax": #44

Wind0ranger opened this issue Oct 15, 2019 · 5 comments

Comments

@Wind0ranger
Copy link

D:\workspace\blog\interview_books>gitbook build
info: 8 plugins are installed
info: 7 explicitly listed
info: loading plugin "mathjax"... ERROR

PluginError: Error with plugin "mathjax": Cannot find module 'mathjax/unpacked/MathJax'

@jiangzhonglian
Copy link

info: loading plugin "mathjax"... ERROR

PluginError: Error with plugin "mathjax": Cannot find module 'mathjax/unpacked/MathJax'

@jinghzhu
Copy link

jinghzhu commented Nov 4, 2019

I also encounter the same issue:

$ gitbook serve .
Live reload server started on port: 35729
Press CTRL+C to quit ...

info: 15 plugins are installed
info: loading plugin "page-toc"... OK
info: loading plugin "mathjax"... ERROR

PluginError: Error with plugin "mathjax": Cannot find module 'mathjax/unpacked/MathJax'

Here is my env:

$ gitbook -V
CLI version: 2.3.2
GitBook version: 3.2.3
$ npm -v
6.12.1

book.json:

{
    "plugins": [
        "mathjax",
    	"anchors",
    	"splitter",
    	"prism", 
    	"-highlight",
    	"book-summary-scroll-position-saver",
        "tbfed-pagefooter",
        "expandable-chapters",
        "search"
    ]
}

This happens after I install latest GitBook.

@starplanet
Copy link

I have the problem too. Any solution?

@ohmyvander
Copy link

You need to install mathjax@2 in your node_modules. Note that do not install mathjax@3 because the usage of it has changed and there is no unpacked directory in it.

@dimpase
Copy link

dimpase commented Nov 5, 2020

is there a plan to switch to mathjax@3 ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants