No method matching `oneunit(::Type{Any})` when solving matrix equation

Well there’s your problem - b can hold elements of quite literally any type and there is no one definition of oneunit for all possible types. I don’t know how you generate b, but you’ll probably want to make sure it contains elements of a concrete type, in your case possibly Float64.