# \`ArgumentError: Package not found in current path\` in Quarto in VSCode

**URL:** https://discourse.julialang.org/t/argumenterror-package-not-found-in-current-path-in-quarto-in-vscode/105949
**Category:** New to Julia
**Tags:** quarto
**Created:** [November 8, 2023, 2:05pm UTC](https://discourse.julialang.org/t/argumenterror-package-not-found-in-current-path-in-quarto-in-vscode/105949 "2023-11-08T14:05:08Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![alicepiller](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@alicepiller](https://discourse.julialang.org/u/alicepiller)
#### Post date: [November 8, 2023, 2:05pm UTC](https://discourse.julialang.org/t/argumenterror-package-not-found-in-current-path-in-quarto-in-vscode/105949/1 "2023-11-08T14:05:09Z")

</div>

I have created a module with various functions that I’m using for a data analysis project. I want to write up a report using Quarto, but it won’t let me load in the module. It gives the error: `ArgumentError: Package not found in current path`. My Quarto document is in the same folder as my main.jl file, which loads my module just fine. Additionally, when I click ‘Run Cell’ in the Quarto document, the functions from my module run. It’s just when I click ‘Preview’ that is says the package can’t be found. What should I do so that my module can be used in the Quarto document?

---

<div class="post-metadata">

### Author: ![Alexandre\_Bergel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alexandre_bergel/32/37951_2.png) [@Alexandre\_Bergel](https://discourse.julialang.org/u/Alexandre_Bergel)
#### Post date: [June 4, 2026, 4:59pm UTC](https://discourse.julialang.org/t/argumenterror-package-not-found-in-current-path-in-quarto-in-vscode/105949/2 "2026-06-04T16:59:39Z")

</div>

I am facing exactly the same issue.

---

<div class="post-metadata">

### Author: ![dmbates](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dmbates/32/44_2.png) [@dmbates](https://discourse.julialang.org/u/dmbates)
#### Post date: [June 5, 2026, 3:25pm UTC](https://discourse.julialang.org/t/argumenterror-package-not-found-in-current-path-in-quarto-in-vscode/105949/3 "2026-06-05T15:25:44Z")

</div>

Did you remember to add the flag `--project=@.` in the yaml headers? I usually include it as

```julia-auto
engine: julia
julia:
  exeflags:
    - -tauto
    - --project=@.

```
