When I tried to import the Powershell module into another script, I got an error, but I can not find the error documentation.
Error:
Cannot load the AWSRestTools.psd1 module because the module extension limit has been exceeded. Modules can only be nested in 10 levels. Evaluate and reorder the modules to prevent them from exceeding the nesting limit, and then try running the script again.
My AWSRestTools module does not load any other modules, so it’s not clear where the nesting happens. The error mentions a reordering of loadable modules, but I don't understand why. Could anyone shed some light on this mistake? Why is there a “nesting restriction” and what will reordering modules do?
source share