# Problem with Genie.jl newapp\_mvc

**URL:** <https://discourse.julialang.org/t/problem-with-genie-jl-newapp-mvc/130701>\
**Category:** Web Stack\
**Created:** [July 14, 2025, 1:23pm UTC](https://discourse.julialang.org/t/problem-with-genie-jl-newapp-mvc/130701 "2025-07-14T13:23:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PharmCat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pharmcat/32/6953_2.png) [@PharmCat](https://discourse.julialang.org/u/PharmCat)\
**Post date:** [July 14, 2025, 1:23pm UTC](https://discourse.julialang.org/t/problem-with-genie-jl-newapp-mvc/130701/1 "2025-07-14T13:23:24Z")

</div>

Try to make new App

```julia
import Pkg
path = "D:\\GenieTest"
cd(path)
Pkg.activate("")
Pkg.add("Genie")
using Genie

Genie.Generator.newapp_mvc("NewApp")

```

And get:

```julia
  Activating new project at `D:\GenieTest\NewApp\test`
  Activating project at `D:\GenieTest\NewApp`
[ Info: Starting your brand new Genie app - hang tight!
ERROR: SystemError: opening file "g:\\Cloud\\Julia\\GenieApp\\config\\initializers\\searchlight.jl": No such file or directory

```

Genie using path to previous APP: “g:\Cloud\Julia\GenieApp\config\initializers\searchlight.jl”

How to fix it?

---

<div class="post-metadata">

**Author:** ![PharmCat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pharmcat/32/6953_2.png) [@PharmCat](https://discourse.julialang.org/u/PharmCat)\
**Post date:** [July 14, 2025, 8:47pm UTC](https://discourse.julialang.org/t/problem-with-genie-jl-newapp-mvc/130701/2 "2025-07-14T20:47:55Z")

</div>

And more:

```julia
import Pkg
#path = dirname(@ __FILE__ )
path = "D:\\GenieApp"
cd(path)
Pkg.activate("")
Pkg.add(["Genie", "SearchLight", "SearchLightSQLite"])

using Genie
#using SearchLight
#using SearchLightSQLite
Genie.Generator.newapp("MyGenieApp")
cd(joinpath(path, "MyGenieApp"))
edit("routes.jl")
Genie.Generator.newcontroller("Books")

using MyGenieApp.BooksController

```

ERRORS

```julia
┌ Error: 2025-07-14 23:45:22 ErrorException("g:\\Cloud\\Julia\\!GTEST\\app\\resources\\books\\BooksController.jl is not a file")
└ @ Genie.Generator 
[ Info: 2025-07-14 23:45:22 New controller created at D:\GenieApp\MyGenieApp\app\resources\books\BooksController.jl

ERROR: UndefVarError: BooksController not defined

```

It try to make controller in `g:\\Cloud\\Julia\\!GTEST\\app\\resources\\books\\BooksController.jl` why?

---

<div class="post-metadata">

**Author:** ![andreeco](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@andreeco](https://discourse.julialang.org/u/andreeco)\
**Post date:** [July 27, 2025, 2:04pm UTC](https://discourse.julialang.org/t/problem-with-genie-jl-newapp-mvc/130701/3 "2025-07-27T14:04:30Z")

</div>

Try this, if you have not already solved the issue:

```julia
Genie.Generator.newresource("book")

```
