During package precompilation you don't really get a good error message but pasting into the REPL you see
ERROR: UndefVarError: `S` not defined in `Main.M`
Hint: It looks like two or more modules export different bindings with this name, resulting in ambiguity. Try explicitly importing it from a particular module, or qualifying the name with the module it should come from.
Originally posted by @KristofferC in #57328