# PlotlyJS Pkg.add error : Markdown not defined

**URL:** <https://discourse.julialang.org/t/plotlyjs-pkg-add-error-markdown-not-defined/14238>\
**Category:** General Usage\
**Tags:** package\
**Created:** [August 29, 2018, 12:14pm UTC](https://discourse.julialang.org/t/plotlyjs-pkg-add-error-markdown-not-defined/14238 "2018-08-29T12:14:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbpatankar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dbpatankar/32/5182_2.png) [@dbpatankar](https://discourse.julialang.org/u/dbpatankar)\
**Post date:** [August 29, 2018, 12:14pm UTC](https://discourse.julialang.org/t/plotlyjs-pkg-add-error-markdown-not-defined/14238/1 "2018-08-29T12:14:56Z")

</div>

Want to use PlotlyJS as backend for plots. So I do

Pkg.add(“PlotlyJS”)

# I get following error

# Building PlotlyJS → `~/.julia/packages/PlotlyJS/3eSkF/deps/build.log` ┌ Error: Error building `PlotlyJS`: │ % Total % Received % Xferd Average Speed Time Time Time Current │ Dload Upload Total Spent Left Speed 100 1332k 100 1332k 0 0 185k 0 0:00:07 0:00:07 --:–:-- 190k │ % Total % Received % Xferd Average Speed Time Time Time Current │ Dload Upload Total Spent Left Speed 100 2726k 100 2726k 0 0 3766k 0 --:–:-- --:–:-- --:–:-- 3766k │ ERROR: LoadError: LoadError: UndefVarError: Markdown not defined │ Stacktrace: │ [1] include at ./boot.jl:317 [inlined] │ [2] include\_relative(::Module, ::String) at ./loading.jl:1038 │ [3] include(::Module, ::String) at ./sysimg.jl:29 │ [4] include(::String) at ./client.jl:388 │ [5] top-level scope at none:0 │ [6] include at ./boot.jl:317 [inlined] │ [7] include\_relative(::Module, ::String) at ./loading.jl:1038 │ [8] include(::Module, ::String) at ./sysimg.jl:29 │ [9] include(::String) at ./client.jl:388 │ [10] top-level scope at none:0 │ in expression starting at /home/digvijay/.julia/packages/PlotlyJS/3eSkF/deps/make\_schema\_docs.jl:3 │ in expression starting at /home/digvijay/.julia/packages/PlotlyJS/3eSkF/deps/build.jl:10 └ @ Pkg.Operations /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Operations.jl:1068

Initially I thought I could live without PlotlyJS and started using gr() backend. However, now when I start adding other package (JuliaFEM) it throws error as it is dependent on PlotlyJS. And JuliaFEM is a package I need.

I see that this particular error can be removed if I change  
using Base.Markdown: MD  
to  
using Markdown: MD  
in make\_schema\_docs.jl file.

But this gives another error related to 8th line in the same file. I am just a beginner in Julia and cannot do anything sensible to eliminate that error.

Is there any solution?

---

<div class="post-metadata">

**Author:** ![stephancb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stephancb/32/14243_2.png) [@stephancb](https://discourse.julialang.org/u/stephancb)\
**Post date:** [August 29, 2018, 1:14pm UTC](https://discourse.julialang.org/t/plotlyjs-pkg-add-error-markdown-not-defined/14238/2 "2018-08-29T13:14:30Z")

</div>

Presently you can

`(v0.7) pkg> add PlotlyJS#sl/0.7`

which adds the latest branch, with julia 0.7 only. Works for me in REPL (but not yet as backend for Plots). See also

[https://github.com/sglyon/PlotlyJS.jl/issues/201](https://github.com/sglyon/PlotlyJS.jl/issues/201)

---

<div class="post-metadata">

**Author:** ![dbpatankar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dbpatankar/32/5182_2.png) [@dbpatankar](https://discourse.julialang.org/u/dbpatankar)\
**Post date:** [August 29, 2018, 1:36pm UTC](https://discourse.julialang.org/t/plotlyjs-pkg-add-error-markdown-not-defined/14238/3 "2018-08-29T13:36:37Z")

</div>

Thanks for the info. I am currently using v1.0 and as per github issues, it is known as reported issue to be fixed soon. Hope it happens soon.

Meanwhile will try installing v0.7 to see if things work there.
