# Problem with Genie newapp\_mvc()

**URL:** https://discourse.julialang.org/t/problem-with-genie-newapp-mvc/96521
**Category:** Web Stack
**Tags:** genie
**Created:** [March 23, 2023, 4:51pm UTC](https://discourse.julialang.org/t/problem-with-genie-newapp-mvc/96521 "2023-03-23T16:51:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![J\_Braulio\_Ramz\_G](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/j_braulio_ramz_g/32/47609_2.png) [@J\_Braulio\_Ramz\_G](https://discourse.julialang.org/u/J_Braulio_Ramz_G)
#### Post date: [March 23, 2023, 4:51pm UTC](https://discourse.julialang.org/t/problem-with-genie-newapp-mvc/96521/1 "2023-03-23T16:51:17Z")

</div>

hi, I’m trying to replicate from: [GitHub - essenciary/genie-watch-tonight](https://github.com/essenciary/genie-watch-tonight) , but I’m getting this:

```julia
julia> Genie.newapp_mvc("Watch tonight")
ERROR: UndefVarError: newapp_mvc not defined
Stacktrace:
 [1] getproperty(x::Module, f::Symbol)
   @ Base .\Base.jl:31
 [2] top-level scope
   @ REPL[13]:1

```

---

<div class="post-metadata">

### Author: ![anagonousourou](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/anagonousourou/32/48872_2.png) [@anagonousourou](https://discourse.julialang.org/u/anagonousourou)
#### Post date: [April 8, 2023, 11:38pm UTC](https://discourse.julialang.org/t/problem-with-genie-newapp-mvc/96521/2 "2023-04-08T23:38:23Z")

</div>

Hello,  
It seems the newapp\* functions have been moved in the new Genie version.

> <https://github.com/GenieFramework/Genie.jl/issues/563>
>
> I was following the guides in https://genieframework.com/docs/genie/tutorials/De…veloping-Web-Services.html. However, I cannot find \`newapp\` family of function in \`Genie@v5\`. They does not exist in the source code of Genie, either:
> !\[image\](https://user-images.githubusercontent.com/31057826/183548905-3b45f0d7-82c4-475a-bd9b-134e826fccc3.png)
> 
> In the end, I found that \`newapp\` might be migrated to \`Genie.Generator\` (https://github.com/GenieFramework/Genie.jl/pull/519) and found them there in. It would be better to mention such changes in the tutorial.
> 
> \`\`\`julia
> julia\> Genie.newapp
> ERROR: UndefVarError: newapp not defined
> Stacktrace:
> \[1\] getproperty(x::Module, f::Symbol)
> @ Base .\\Base.jl:31
> \[2\] top-level scope
> @ REPL\[16\]:1
> 
> julia\> Genie.
> Assets Loader Secrets ispayload
> BAD\_REQUEST Logger Server isrunning
> BOOTSTRAP\_FILE\_NAME NOT\_FOUND Toolbox linkto
> CREATED NO\_CONTENT Util loadapp
> Commands OK Watch params
> Configuration OPTIONS WebChannels params!
> Cookie PATCH WebThreads parsequerystring
> Cookies POST assets\_config post
> DELETE PUT bootstrap query
> Encryption ROUTES\_FILE\_NAME channel request
> Exceptions Renderer channels responsetype
> FileTemplates Renderers config route
> GET Repl down routes
> Generator Request down! run
> HEAD Requests escapeHTML serve\_static\_file
> HTTPUtils Response eval tolink
> Headers Responses genie toroute
> HttpCommon Router go up
> INTERNAL\_ERROR SEARCHLIGHT\_INITIALIZER\_FILE\_NAME headers
> Input STATUS\_CODES include
> 
> julia\> Genie.Generator.newapp
> newapp (generic function with 1 method)
> \`\`\`
> 
> \*\*Additional context\*\*
> \`\`\`jl
> (server) pkg\> st
> Status \`D:\\JuliaAstroSim\\NonlinearOptics.jl\\server\\Project.toml\`
> \[c43c736e\] Genie v5.1.1
> 
> julia\> versioninfo()
> Julia Version 1.8.0-rc3
> Commit 33f19bcbd2 (2022-07-13 19:10 UTC)
> Platform Info:
> OS: Windows (x86\_64-w64-mingw32)
> CPU: 16 × AMD Ryzen 7 3700X 8-Core Processor
> WORD\_SIZE: 64
> LIBM: libopenlibm
> LLVM: libLLVM-13.0.1 (ORCJIT, znver2)
> Threads: 1 on 16 virtual cores
> Environment:
> JULIA\_DEPOT\_PATH = D:\\.julia
> \`\`\`

They are now under Genie.Generator
