-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Cannot find module /es5/input/tex.js" error in Windows Node #2486
Comments
Thanks for the report. It looks like MathJax is having trouble locating its package directory in Windows. I'm able to reproduce the problem, and will look into it further. In the meantime, you can add paths: {mathjax: 'mathjax/es5'}, to the const MathJax = await init({
loader: {
paths: {mathjax: 'mathjax/es5'},
load: ['input/tex', 'output/svg']
},
tex,
svg
}); See if that works for you. |
It turns out that the copy of node's |
Fix processing of root directory for components to work under Windows (mathjax/MathJax#2486)
Fixed in v3.1 released today. |
Issue Summary
I'm trying to integrate mathjax (tex => svg) into this node app (hexojs/hexo-math#130). Unit test ran fine in GitHub Actions' Ubuntu and OSX environments but failed in Windows with
MathJax(input/tex): Cannot find module '/es5/input/tex.js'
error (log).Affects Node 10, 12 & 14. Same issue in Travis.
Steps to Reproduce:
lib/mathjax.js
Unit test test/index.js
Technical details:
Supporting information:
hexojs/hexo-math#130
Configuration ./index.js
The text was updated successfully, but these errors were encountered: