Open Wind0ranger opened 4 years ago
info: loading plugin "mathjax"... ERROR
PluginError: Error with plugin "mathjax": Cannot find module 'mathjax/unpacked/MathJax'
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.
I have the problem too. Any solution?
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.
is there a plan to switch to mathjax@3
?
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'