You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading from 2.2.2 (where it worked perfectly), versions 2.3.0 and 2.4.0 cannot compile katex.js, giving the error TypeError: Cannot set property 'katex' of undefined (ExecJS::ProgramError). I downloaded katex.min.js version 0.2.0 from https://github.com/Khan/KaTeX/releases. ExecJS version 2.2.2 compiles the same file without problem.
The full trace is below:
p((execjs):1:563): TypeError: Cannotsetproperty'katex'ofundefined(ExecJS::ProgramError)from(execjs):1:568from(execjs):11:14from(execjs):1:102fromObject.<anonymous> ((execjs):1:120)fromModule._compile(module.js:460:26)fromObject.Module._extensions..js(module.js:478:10)fromModule.load(module.js:355:32)fromFunction.Module._load(module.js:310:12)fromFunction.Module.runMain(module.js:501:10)from/var/lib/gems/2.1.0/gems/execjs-2.4.0/lib/execjs/external_runtime.rb:32:in`exec' from /var/lib/gems/2.1.0/gems/execjs-2.4.0/lib/execjs/external_runtime.rb:14:in `initialize' from /var/lib/gems/2.1.0/gems/execjs-2.4.0/lib/execjs/runtime.rb:44:in `new'from/var/lib/gems/2.1.0/gems/execjs-2.4.0/lib/execjs/runtime.rb:44:in`compile' from /var/lib/gems/2.1.0/gems/execjs-2.4.0/lib/execjs/module.rb:27:in `compile' from execjs-katex.rb:4:in `<main>'
It seems like it might have to do with the following line in katex.min.js:
I've been using ExecJS for compiling KaTeX for a while now (see repo https://github.com/drewsberry/jekyll-katex-block).
After upgrading from 2.2.2 (where it worked perfectly), versions 2.3.0 and 2.4.0 cannot compile katex.js, giving the error
TypeError: Cannot set property 'katex' of undefined (ExecJS::ProgramError)
. I downloadedkatex.min.js
version 0.2.0 from https://github.com/Khan/KaTeX/releases. ExecJS version 2.2.2 compiles the same file without problem.The full trace is below:
It seems like it might have to do with the following line in
katex.min.js
:In 2.2.2, running
ExecJS.eval "typeof global"
returnsObject
, whereas in 2.4.0 it returnsundefined
.I'm using Node.js v0.12.1 for the runtime.
The text was updated successfully, but these errors were encountered: