# Javis: Error in the first tutorial ERROR: UndefVarError: \`Object\` not defined in \`Main\`

**URL:** <https://discourse.julialang.org/t/javis-error-in-the-first-tutorial-error-undefvarerror-object-not-defined-in-main/131467>\
**Category:** New to Julia\
**Tags:** package\
**Created:** [August 8, 2025, 5:38am UTC](https://discourse.julialang.org/t/javis-error-in-the-first-tutorial-error-undefvarerror-object-not-defined-in-main/131467 "2025-08-08T05:38:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tdm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tdm/32/213999_2.png) [@tdm](https://discourse.julialang.org/u/tdm)\
**Post date:** [August 8, 2025, 5:38am UTC](https://discourse.julialang.org/t/javis-error-in-the-first-tutorial-error-undefvarerror-object-not-defined-in-main/131467/1 "2025-08-08T05:38:10Z")

</div>

I am following the steps in the (very well written) Javis first tutorial: [Tutorial 1: Making Your First Javis Animation! · Javis.jl](https://juliaanimators.github.io/Javis.jl/stable/tutorials/tutorial_1/)

There are errors right off the bat when I try simple things like:

**julia\> Background(1:70, ground)**  
**ERROR: UndefVarError: `Background` not defined in `Main`**  
**Suggestion: check for spelling errors or missing imports.**  
**Stacktrace:**  
\*\* [1] top-level scope\*\*  
\*\* @ REPL[25]:1\*\*

OR

**julia\> red\_ball = Object(1:70, (args…) → object(O, “red”), Point(100, 0))**  
**ERROR: UndefVarError: `Object` not defined in `Main`**  
**Suggestion: check for spelling errors or missing imports.**  
**Stacktrace:**  
\*\* [1] top-level scope\*\*  
\*\* @ REPL[26]:1\*\*

I created a new environment with only the required package:  
(SVG) pkg\> status  
Status `C:\CODE\Julia\SVG\Project.toml`  
[27a7e980] Animations v0.4.2  
[159f3aea] Cairo v1.1.1  
[4f61f5a4] FFTViews v0.3.2  
[7a1cc6ca] FFTW v1.9.0  
⌃ [78b212ba] Javis v0.1.5  
⌅ [ae8d54c2] Luxor v2.7.0  
[8c8f4381] TravelingSalesmanHeuristics v0.3.4

Note: I also removed all packages except Javis, I get the same result.  
Any suggestions?

---

<div class="post-metadata">

**Author:** ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)\
**Post date:** [August 8, 2025, 8:09am UTC](https://discourse.julialang.org/t/javis-error-in-the-first-tutorial-error-undefvarerror-object-not-defined-in-main/131467/2 "2025-08-08T08:09:24Z")

</div>

your versions look very old:

```julia-auto
⌃ [78b212ba] Javis v0.1.5
⌅ [ae8d54c2] Luxor v2.7.0

```

Javis is at 0.9.0, Luxor is at 4.3.0. 😱

and I think Javis needs a bit of maintenance…

---

<div class="post-metadata">

**Author:** ![Nathan\_Boyer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nathan_boyer/32/14825_2.png) [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Post date:** [August 8, 2025, 2:00pm UTC](https://discourse.julialang.org/t/javis-error-in-the-first-tutorial-error-undefvarerror-object-not-defined-in-main/131467/3 "2025-08-08T14:00:10Z")

</div>

That error indicates that those types (`Background` and `Object`) are not loaded in your REPL session. Make sure you load the package with `using Javis` first. Those types may also have been introduced in a later version of Javis, so it is a good idea to try updating the packages first with `]up`.

---

<div class="post-metadata">

**Author:** ![tdm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tdm/32/213999_2.png) [@tdm](https://discourse.julialang.org/u/tdm)\
**Post date:** [August 8, 2025, 8:11pm UTC](https://discourse.julialang.org/t/javis-error-in-the-first-tutorial-error-undefvarerror-object-not-defined-in-main/131467/4 "2025-08-08T20:11:23Z")

</div>

I installed Javis yesterday for the first time ever but I assume there was some other package that forced Javis to a previous version (I ran into some precompiling issues, see my previous post here)

I ran “]up” and it now works!

Thanks!
