Pode.Web icon indicating copy to clipboard operation
Pode.Web copied to clipboard

The Source path supplied for Static Route does not exist

Open tinuwalther opened this issue 1 year ago • 1 comments

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:

  1. Install-Module pode.web -Scope AllUsers -Force -Verbose
  2. Install-Module pode -Scope AllUsers -Force -Verbose
  3. Remove Pode.Web 0.8.2
  4. 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

tinuwalther avatar May 19 '23 07:05 tinuwalther

New findings: if I close the terminal and open a new terminal and restart the Pode Server, the path is found in both versions.

tinuwalther avatar May 19 '23 10:05 tinuwalther