Skip to content

[Bug]: Unable to import module in PowerShell 7.4 #454

@Salavin

Description

@Salavin

PowerShell Version

7.x (PowerShell Core)

Operating System

Windows

Module Version

2.0.0

What happened?

I don't appear to be able to import the module with PowerShell 7.4.

Expected behavior

To be able to import the module.

Minimal reproduction

Import-Module Plaster -RequiredVersion 2.0.0

Error output / logs

C:\
> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.4.14
PSEdition                      Core
GitCommitId                    7.4.14
OS                             Microsoft Windows 10.0.26100
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

C:\
> Import-Module Plaster -RequiredVersion 2.0.0
Test-ModuleManifest: The module manifest 'Plaster.psm1' could not be processed because it is not a valid PowerShell module manifest file.
Remove the elements that are not permitted:
~\Documents\PowerShell\Modules\Plaster\2.0.0\Plaster.psd1
Import-Module: The module to process 'Plaster.psm1', listed in field 'ModuleToProcess/RootModule' of module manifest '~\Documents\PowerShell\Modules\Plaster\2.0.0\Plaster.psd1' was not processed because no valid module was found in any module directory.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions