colonelclaypoo
colonelclaypoo
I've been experiencing a similar issue with a for example `Add-PnPPage`. In VSCode I'm getting: `Method not found: "System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable1 Enumerator.MoveNextAsync()"` Using 1.5.55-nightly. It works fine in PowerShell 5 and 7...
It's unfortunate but I can confirm your two statements @SergeiAtML. Ended up downgrading as well on one machine end try to use the PowerShell 7 default shell when necessarily have...
I've just come across the same issue but with Get-PnPList. In this case, even assigning it to a variable does not work. $credential = Get-AutomationPSCredential -Name 'RunPowerShell' Connect-PnPOnline https://.../sites/... -Credential...
Just noticed the error seems to be the `Write-Output $list`. Without this the script runs just fine.
@PowershellNinja I can confirm what you've just described. Will use the suggested workaround for the time being. Thanks for your help.