Pages does not work

Hi there!

I’m pretty new Universal Dashboard user so sorry if this is stupid question.

I have implemented Main.ps1 which is the file which contains all necassery details (or not :slight_smile:)
Main.ps1 :

$Pages = @()
$Pages += . (Join-Path $PSScriptRoot “pages\Home.ps1”)
Get-ChildItem -Path (Join-Path $PSScriptRoot “pages”) -Exclude “Home.ps1” | ForEach-Object {
Pages += . _.FullName

$Dashboard = New-UDDashboard -Title “Monitor” -Pages $Pages
Start-UDDashboard -Dashboard $Dashboard -Port 10001 -AutoReload

Home.ps1 :

$Main = New-UDPage -Name “Home” -Content {


Error what i am receiving is this:
New-UDDashboard : Cannot bind argument to parameter ‘Pages’ because it is an empty array.

Here is my details:
PSVersion 5.1.17763.503
UniversalDashboard 2.4.1

So am i completly lost? :slight_smile:

remove the $Main from home.ps1

New-UDPage -Name “Home” -Content {

Yes! Thank you so much. This was a problem.