Pode.Web
Pode.Web copied to clipboard
The Source path supplied for Static Route does not exist
Describe the Bug
If I update the Pode.Web Module to the v0.8.3 and if I remove the Module Pode.Web 0.8.2 and I start the pode server, then the following error raised:
ParentContainsErrorRecordException: C:\Program Files\PowerShell\Modules\Pode\2.8.0\Private\Server.ps1:147
Line |
147 | throw $_.Exception
| ~~~~~~~~~~~~~~~~~~
| [Static)] /pode.web[/]{0,1}(?<file>.*): The Source path supplied for Static Route does not exist: C:\Program
| Files\PowerShell\Modules\Pode.Web\0.8.2\Templates\Public
Steps To Reproduce
Steps to reproduce the behavior:
- Install-Module pode.web -Scope AllUsers -Force -Verbose
- Install-Module pode -Scope AllUsers -Force -Verbose
- Remove Pode.Web 0.8.2
- Start my Pode Server with Start-PodeServer.ps1 or any Pode Server
Expected Behavior
The Pode Server starts with no error like with Pode.Web 0.8.2.
Platform
- OS: Windows
- Browser: Firefox
- Versions:
- Pode: v2.8.0
- Pode.Web: v0.8.3
- PowerShell: PS7.3.4
New findings: if I close the terminal and open a new terminal and restart the Pode Server, the path is found in both versions.