Had the exact same thing occur on my 2015 Yukon SLT. Replaced the 10 amp #8 fuse (driver's side) and it seemed to work. However, the next time I tried to open the sunroof, nada. To make sure it wasn't the sun roof causing the issue, I pulled the 30 amp sun roof fuse #21 (passenger side). Put a new 10-amp fuse in #8 and started it up. Turned it off and found the #8 had blown. So it (hopefully) wasn't the sunroof motor.
Then I re-read all the posts here and decided to check for broken wires leading to the wireless charging module.
Using a flashlight, I was able to see bare wires in the center console hinge area. I removed the wireless charging module cover under the charging pad and found that all 3 wires had broken and were shorted against each other. Since I have not upgraded the wireless charging module and charging mat, and have no intentions of doing so, I slipped heat shrink tubing over each wire, and applied heat. Then I heat shrunk all 3 together. If at some point down the road I decide to fork over $85 for an updated wireless charging module, I would be able to splice the wires.
Installed a new 10-amp fuse and the sunroof now functions properly.
You might be able to tape/heatshrink the ends without removing the module cover. You will need a pair of long, thin, needle-nose pliers to unhook the wire bundle from the hinge arm. Here’s a short video on how to remove the center console bottom cover:
Console cover removal
Thanks to all for this post, it saved me from having to take it in!