Do not error if requiredVersion is not provided.
If a package overrides the sharing config for a dependency, it might have forgotton to give the requiredVersion (so requiredVersion is undefined). In this case, don't error, but instead just go with the default webpack behavior.