I cannot import one module although I am able to do so with others

The title basically says it all. I have a module that Julia does not find. The error message

using Pal
ERROR: ArgumentError: Package Pal not found in current path:
- Run `import Pkg; Pkg.add("Pal")` to install the Pal package.

 [1] require(::Module, ::Symbol) at .\loading.jl:876 

is the one of a module that cannot be found but a different module in the same folder can be imported or Used. It compiles with no problems and can be used after running the file.

What is the structure of your code? How do you map modules to files?

1 Like

Do you do something like this?

julia> include("Pal.jl")

julia> using Main.Pal

shell> cat Pal.jl
module Pal

f(x) = 3