You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not entirely sure if PS7 is intended to be supported as of yet, however I wanted to report an issue with installing. If installing using PS5, there are no errors or issues. When installing with PS7 via Install-PSResource, the module partially installs before throwing an error:
Install-PSResource: Unable to successfully install package 'string': 'Cannot generate a PowerShell object for a ScriptBlock evaluating dynamic expressions.
It then goes on to show the dynamic expression, which appears to be the module manifest for the 'string' module. A review of content after the fact reveals that the 'string' module is not installed, though other dependent modules are.
Running PowerShell 7.3.3 on Windows 11 (Insiders Build) via Windows Terminal.
The text was updated successfully, but these errors were encountered:
As mentioned, was using PowerShell 7.3.3. I believe I may have traced the issue to a conflict type scenario. The module was previously installed in PowerShell 5 into my Documents\MicrosoftPowerShell\Modules directory. I was being a bit lazy and decided to install again on PS 7 side, into Documents\PowerShell\Modules (as is default). I was able to work around the problem by ensuring the PS5 copy of the module was up to date and just copying it over.
Not entirely sure if PS7 is intended to be supported as of yet, however I wanted to report an issue with installing. If installing using PS5, there are no errors or issues. When installing with PS7 via Install-PSResource, the module partially installs before throwing an error:
Install-PSResource: Unable to successfully install package 'string': 'Cannot generate a PowerShell object for a ScriptBlock evaluating dynamic expressions.
It then goes on to show the dynamic expression, which appears to be the module manifest for the 'string' module. A review of content after the fact reveals that the 'string' module is not installed, though other dependent modules are.
Running PowerShell 7.3.3 on Windows 11 (Insiders Build) via Windows Terminal.
The text was updated successfully, but these errors were encountered: