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
When executing a build using $PSBPreference.Build.CompileModule = $true on a base Stucco template, I receive an error on the Task GENERATEMARKDOWN. However, if I use $PSBPreference.Build.CompileModule = $false the build will succeed.
Expected Behavior
The build of a monolithic PSM1 should not produce errors regarding Classes.
Current Behavior
I receive the following error:
Error: 2022-12-14 9:19:54 PM:
At C:\Temp\ModuleNew\Output\ModuleNew\0.1.0\ModuleNew.psm1:31 char:14 + … classes = @(Get-ChildItem -Path (Join-Path -Path $PSScriptRoot -Child … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [<<==>>] Exception: Cannot find path 'C:\Temp\ModuleNew\Output\ModuleNew\0.1.0\Classes' because it does not exist.
Steps to Reproduce (for bugs)
Create a new module with Stucco
Set psakeFile parameter $PSBPreference.Build.CompileModule = $true
Execute .\build.ps1 from a pwsh terminal
Context
This issue prevents me from being able to build a module.
Your Environment
Module version used: 0.6.1
Operating System and PowerShell version: Windows 10 22H2 , PowerShell 7.2.7
The text was updated successfully, but these errors were encountered:
It sounds like your C:\Temp\ModuleNew\ModuleNew\ModuleNew.psm1 has code that is loading from that directory. If you're compiling you'll want to edit your psm1 file to account for that.
When executing a build using $PSBPreference.Build.CompileModule = $true on a base Stucco template, I receive an error on the Task GENERATEMARKDOWN. However, if I use $PSBPreference.Build.CompileModule = $false the build will succeed.
Expected Behavior
The build of a monolithic PSM1 should not produce errors regarding Classes.
Current Behavior
I receive the following error:
Error: 2022-12-14 9:19:54 PM:
At C:\Temp\ModuleNew\Output\ModuleNew\0.1.0\ModuleNew.psm1:31 char:14 + … classes = @(Get-ChildItem -Path (Join-Path -Path $PSScriptRoot -Child … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [<<==>>] Exception: Cannot find path 'C:\Temp\ModuleNew\Output\ModuleNew\0.1.0\Classes' because it does not exist.
Steps to Reproduce (for bugs)
Context
This issue prevents me from being able to build a module.
Your Environment
The text was updated successfully, but these errors were encountered: