# Dependency error... kramdown-math-MathJax

**URL:** <https://talk.jekyllrb.com/t/dependency-error-kramdown-math-mathjax/2731>\
**Category:** Help\
**Created:** [March 18, 2019, 2:40pm UTC](https://talk.jekyllrb.com/t/dependency-error-kramdown-math-mathjax/2731 "2019-03-18T14:40:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lpuerto](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/lpuerto/32/847_2.png) [@lpuerto](https://talk.jekyllrb.com/u/lpuerto)\
**Post date:** [March 18, 2019, 2:40pm UTC](https://talk.jekyllrb.com/t/dependency-error-kramdown-math-mathjax/2731/1 "2019-03-18T14:40:11Z")

</div>

I got the following message trying to build my site:

```auto
Dependency Error: Yikes! It looks like you don't have kramdown-math-MathJax or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. If you've run Jekyll with `bundle exec`, ensure that you have included the kramdown-math-MathJax gem in your Gemfile as well. The full error message from Ruby is: 'cannot load such file -- kramdown-math-MathJax' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/! 
  Conversion error: Jekyll::Converters::Markdown encountered an error while converting '_posts/2017-05-15-first-blog-post.md':
                    kramdown-math-MathJax
             ERROR: YOUR SITE COULD NOT BE BUILT:
                    ------------------------------------
                    kramdown-math-MathJax
                    ------------------------------------------------
      Jekyll 3.8.5 Please append `--trace` to the `build` command 
                     for any additional information or backtrace. 
                    ------------------------------------------------

```

I have to remove the reference to MathJax as math engine from my `_config.yml` to make it work.

```auto
kramdown:
  math_engine: MathJax
  math_engine_opts: # more info: https://kramdown.gettalong.org/math_engine/mathjax.html
    preview: false
    preview_as_code: false 

```

Does anyone know what is going on?

Thanks!

---

<div class="post-metadata">

**Author:** ![lpuerto](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/lpuerto/32/847_2.png) [@lpuerto](https://talk.jekyllrb.com/u/lpuerto)\
**Post date:** [March 18, 2019, 2:47pm UTC](https://talk.jekyllrb.com/t/dependency-error-kramdown-math-mathjax/2731/2 "2019-03-18T14:47:07Z")

</div>

OK… I just figure it out… it was the caps on the `MathJax`… it should all in small letters `mathjax`. Funny thing it was working just fine till I update to kramdown 2.1.

---

<div class="post-metadata">

**Author:** ![ashmaroli](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@ashmaroli](https://talk.jekyllrb.com/u/ashmaroli)\
**Post date:** [March 18, 2019, 3:37pm UTC](https://talk.jekyllrb.com/t/dependency-error-kramdown-math-mathjax/2731/3 "2019-03-18T15:37:33Z")

</div>

How are you using Jekyll?  
The last released version `jekyll-3.8.5` has `kramdown` locked to the `1.x` series. You shouldn’t be able to use `kramdown-2.1` at all…

---

<div class="post-metadata">

**Author:** ![lpuerto](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/lpuerto/32/847_2.png) [@lpuerto](https://talk.jekyllrb.com/u/lpuerto)\
**Post date:** [March 19, 2019, 8:54am UTC](https://talk.jekyllrb.com/t/dependency-error-kramdown-math-mathjax/2731/4 "2019-03-19T08:54:46Z")

</div>

I’m using the master version

```auto
gem "jekyll", github: "jekyll/jekyll" # allow to build Jekyll faster.

```

because it’s decrease significantly the building time, as explained here: [How I reduced my Jekyll build time by 61%](http://talk.jekyllrb.com/t/how-i-reduced-my-jekyll-build-time-by-61/2597)

PS/ of course I’m not building it with gh-pages, but in travis.

---

<div class="post-metadata">

**Author:** ![ashmaroli](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@ashmaroli](https://talk.jekyllrb.com/u/ashmaroli)\
**Post date:** [March 19, 2019, 2:05pm UTC](https://talk.jekyllrb.com/t/dependency-error-kramdown-math-mathjax/2731/5 "2019-03-19T14:05:55Z")

</div>

`Jekyll-4.0.0.pre.alpha1` has been released, along with a document detailing what to know when using the new version: [https://jekyllrb.com/docs/upgrading/3-to-4/](https://jekyllrb.com/docs/upgrading/3-to-4/)

Besides, now that `master` is at a different version altogether, do note that your plugins may not work since they may still be locked to `v3.x.y`.

---

<div class="post-metadata">

**Author:** ![lpuerto](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/lpuerto/32/847_2.png) [@lpuerto](https://talk.jekyllrb.com/u/lpuerto)\
**Post date:** [March 20, 2019, 8:32am UTC](https://talk.jekyllrb.com/t/dependency-error-kramdown-math-mathjax/2731/6 "2019-03-20T08:32:04Z")

</div>

Oh great!

Thanks a lot for the info! I think I need it because I got another error today.
