I am trying to make a clean setup for the seperate ud pages which my dashboard has but when i try to load them into a a $pages variable with this:
$Pages = Get-ChildItem (Join-Path PSScriptRoot 'pages') -Recurse -File | ForEach-Object {
& _.FullName
}
and even though the pages are loaded, and in ise i can see them being loaded into the variables, when i start the dashboard after having the pages set up like this
$Dashbard = New-UDDashboard -Title “page bla bla bla” -Pages $Pages -Theme $Theme_Azure -LoginPage $LoginPage -Footer $footer
it just gives the error:
New-UDDashboard : Cannot bind argument to parameter ‘Pages’ because it is null.
Probably a ‘feature’ of ISE.
I have moved from using ISE to using Visual Studio Code for developing dashboards, so probably why i have not encountered the issue