Precompilation errors while adding self-developed package to another package

You didn’t show the full environment (]status -m), but presumably you also got an old version of Plots.jl, so another option is to add compat entry for it (which is always a good idea, besides being mandatory for packages in the General registry)

Plots = "1.40"

Side question, why does your package depend on Pkg.jl and Plots.jl at all?