Package does not have AnotherPackage in its dependencies

I have a small functioning Julia project.
I needed to add JSONSchema package
so I did:
pkg> add JSONSchema
It added following line to my Project.toml under [deps]:
JSONSchema = "7d188eb4-7ad8-530c-ae41-71a32a6d4692"
My environment is properly activated.
But when I try this:

julia> using MyProject
[ Info: Precompiling MyProject [a7d6e318-225e-4d8e-889c-a5cbc6ddf7fb]
ERROR: LoadError: LoadError: ArgumentError: Package MyProject does not have JSONSchemas in its dependencies:
- If you have MyProject checked out for development and have
  added JSONSchemas as a dependency but haven't updated your primary
  environment's manifest file, try `Pkg.resolve()`.
- Otherwise you may need to report an issue with MyProject

But resolve doesn’t seem to do anything:

(MyProject) pkg> resolve
No Changes to `.julia\dev\MyProject\Project.toml`
No Changes to `.julia\dev\MyProject\Manifest.toml`

What am I missing, or how could I solve this issue?

Isn’t that just a typo? (an s there at the end of Schema?)

1 Like

Thank you!! Yes, typo in one of .jl files in using statement.

I’m sorry, I have just overlooked…

1 Like