fix: type errors were ignored when loading definitions