I had a problem, I exported an authentication scheme(type Social Sign-In) with the component export, but it was never imported when I ran the script.
After a few tests, I figured out that if the associated credential was not imported in the same session, before the import of the authentication, it failed to create the authentication.
The workaround is quite easy, I get it, but it would be nice to be able to install only the auth scheme, or at least, have a message explicitly saying that the credential must come along(and before)