DSC resource modules that have not been imported can cause failures

If a resource has been installed by copying to the modules folder but has not been used in a DSC configuration before the use of what-if in the configuration can cause failures during what-if processing.
why not use =~ here as well?