Package installation error (internally developed package)

I am developing a package in homedir()\.julia\dev\Foo01 and trying to use it. When I try to use the package the system seems to recognize the package but will not install it with the following error:

julia> using Foo01
ERROR: ArgumentError: Package Foo01 [654a566b-f95c-4842-85af-64f580923652] is required but does not seem to be installed:
 - Run `Pkg.instantiate()` to install all recorded dependencies.

Stacktrace:
 [1] _require(pkg::Base.PkgId)
   @ Base .\loading.jl:990
 [2] require(uuidkey::Base.PkgId)
   @ Base .\loading.jl:914
 [3] require(into::Module, mod::Symbol)
   @ Base .\loading.jl:901

I created the package using PkgTemplate as Foo. Then I decided that I wanted to call it Foo01 so changed its folder name, first line of the Project.toml is correct, and its filename in src is Foo01.jl. I did the Pkg.instantiate() command. Is there something I forgot to change or something I can do to get it working?

Did you also update the name inside the source file? E.g. module Foomodule Foo01?

Yes, I did rename it.

Are you doing “using” with your package’s environment activated, or from another environment?

If the latter, you may need to ]rm de old name and ]dev the new one again?

That seems to work, thank you.