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

Hi,
I am learning Julia with Genie Framework I am following the book Web-Development-with-Julia-and-Genie

On Chapter 8, db/migations there is the module “GenerateFakeTodos” chapter 8-GenerateFakeTodos.jl

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

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)

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

1 Like