As mentioned in #9664, there are errors in output generation. Fix #17008 already addresses shadowed imports, this change adds missing package imports for transient dependencies.