Errors when deffing a defrecord happen in client code