'FrameworkName' is not a member type of 'FrameworkName' errors inside swiftinterface

I've just hit hundreds of these errors. For a current project I switched to the Swift-for-tensorflow toolchain and these errors showed up in a third-party framework I'm using. Why would a framework suddenly get all these errors?
As a first attempt at fixing it, I did recompile the framework (it's open source) using the new toolchain, but no luck.