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

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?