# Can't use dependencies in apps?

**URL:** <https://discourse.julialang.org/t/cant-use-dependencies-in-apps/130280>\
**Category:** General Usage\
**Created:** [June 27, 2025, 4:38pm UTC](https://discourse.julialang.org/t/cant-use-dependencies-in-apps/130280 "2025-06-27T16:38:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevbonham](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kevbonham/32/216165_2.png) [@kevbonham](https://discourse.julialang.org/u/kevbonham)\
**Post date:** [June 27, 2025, 4:38pm UTC](https://discourse.julialang.org/t/cant-use-dependencies-in-apps/130280/1 "2025-06-27T16:38:22Z")

</div>

I can not seem to get an app installed using the current julia 1.12 beta, if there are any Stdlibs in the dependencies. This works:

`src/PapisImport.jl`:

```julia
module PapisImport

export main

function (@main)(args)
    @info args
end

end

```

`Project.toml`

```toml
name = "PapisImport"
uuid = "69ff6faf-3e79-4e92-b1a9-17ae241e1550"

[apps.papim]

```

```julia-repl
shell> papim
Precompiling PapisImport finished.
  1 dependency successfully precompiled in 1 seconds
[Info: String[]

```

But if I add any package dependencies, I get errors when trying to load the app. Eg if I do `]add MiniLoggers`, then put `using MiniLoggers` inside the module, I get:

```julia
(PapisImport) pkg> st
Project PapisImport v0.1.0
Status `~/Repos/PapisImport/Project.toml`
  [93f3dd0f] MiniLoggers v0.5.3

(PapisImport) pkg> resolve
No packages added to or removed from `~/Repos/PapisImport/Project.toml`
No packages added to or removed from `~/Repos/PapisImport/Manifest.toml`

(PapisImport) pkg> instantiate
Precompiling packages finished.
  1 dependency successfully precompiled in 1 seconds. 9 already precompiled.

(PapisImport) pkg> app st
[36286069] ActualImport `~/Repos/actual-import`
  actualimport ~/Dotfiles/julia/.julia/juliaup/julia-1.12.0-beta2+0.x64.linux.gnu/bin/julia

(PapisImport) pkg> app dev .
  ✗ PapisImport
Precompiling packages finished.
  0 dependencies successfully precompiled in 1 seconds
  1 dependency errored.
  For a report of the errors see `julia> err`. To retry use `pkg> precompile`
  ✗ PapisImport
Precompiling packages finished.
  0 dependencies successfully precompiled in 1 seconds
  1 dependency errored.
  For a report of the errors see `julia> err`. To retry use `pkg> precompile`
  ✗ PapisImport
Precompiling packages finished.
  0 dependencies successfully precompiled in 1 seconds

ERROR: The following 1 direct dependency failed to precompile:

PapisImport

Failed to precompile PapisImport [69ff6faf-3e79-4e92-b1a9-17ae241e1550] to "/home/kevin/.julia/compiled/v1.12/PapisImport/jl_wOiceF".
ERROR: LoadError: ArgumentError: Package PapisImport does not have MiniLoggers in its dependencies:

```

I can do

```julia-repl
julia> using PapisImport; PapisImport.main([])
[Info: Any[]

```

---

<div class="post-metadata">

**Author:** ![Mason](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mason/32/2423_2.png) [@Mason](https://discourse.julialang.org/u/Mason)\
**Post date:** [June 27, 2025, 4:42pm UTC](https://discourse.julialang.org/t/cant-use-dependencies-in-apps/130280/2 "2025-06-27T16:42:34Z")

</div>

I would probably open an issue in Pkg.jl

---

<div class="post-metadata">

**Author:** ![kevbonham](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kevbonham/32/216165_2.png) [@kevbonham](https://discourse.julialang.org/u/kevbonham)\
**Post date:** [June 27, 2025, 4:49pm UTC](https://discourse.julialang.org/t/cant-use-dependencies-in-apps/130280/3 "2025-06-27T16:49:55Z")

</div>

I just want to make sure I’m not doing something dumb first 😛
