# Genie /Project level how to fix UndefVarError: \`TodoMVC\` not defined

**URL:** <https://discourse.julialang.org/t/genie-project-level-how-to-fix-undefvarerror-todomvc-not-defined/121966>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [October 30, 2024, 1:02am UTC](https://discourse.julialang.org/t/genie-project-level-how-to-fix-undefvarerror-todomvc-not-defined/121966 "2024-10-30T01:02:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreh](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@andreh](https://discourse.julialang.org/u/andreh)\
**Post date:** [October 30, 2024, 1:02am UTC](https://discourse.julialang.org/t/genie-project-level-how-to-fix-undefvarerror-todomvc-not-defined/121966/1 "2024-10-30T01:02:49Z")

</div>

Hi,  
I am learning Julia with Genie Framework I am following the book [Web-Development-with-Julia-and-Genie](https://github.com/PacktPublishing/Web-Development-with-Julia-and-Genie/tree/main)

On Chapter 8, db/migations there is the module “GenerateFakeTodos” [chapter 8-GenerateFakeTodos.jl](https://github.com/PacktPublishing/Web-Development-with-Julia-and-Genie/blob/main/Chapter8/TodoMVC/db/migrations/2022101213470398_generate_fake_todos.jl)

After running SearchLight.Migration.up() I get the error:

```julia
julia> SearchLight.Migrations.up()
[ Info: SELECT version FROM schema_migrations ORDER BY version DESC
WARNING: replacing module GenerateFakeTodos.
┌ Error: Failed executing migration GenerateFakeTodos up
└ @ SearchLight.Migration ~/.julia/packages/SearchLight/1tmyw/src/Migration.jl:309
ERROR: LoadError: UndefVarError: `TodoMVC` not defined
Stacktrace:
 [1] include
   @ ./Base.jl:495 [inlined]
 [2] run_migration(migration::SearchLight.Migration.DatabaseMigration, direction::Symbol; force::Bool, context::Module)
   @ SearchLight.Migration ~/.julia/packages/SearchLight/1tmyw/src/Migration.jl:294
 [3] run_migration
   @ ~/.julia/packages/SearchLight/1tmyw/src/Migration.jl:278 [inlined]
 [4] #last_up#11
   @ ~/.julia/packages/SearchLight/1tmyw/src/Migration.jl:161 [inlined]
 [5] last_up()
   @ SearchLight.Migration ~/.julia/packages/SearchLight/1tmyw/src/Migration.jl:160

```

This is the structure of the project (part of it)

 ![image](https://global.discourse-cdn.com/julialang/original/3X/4/6/4663365bbbffda83a8317deab0cb75d3e08ddaed.png)

Any idea how I can make it work?  
Thank you!
