Problems adding plugin (Filament navigation)

When adding the Filament Navigation plugin and configuring it to use a new item Type. I receive an error message stating 'call to a member function connection() on null' my code is:

->plugin(FilamentNavigation::make()->itemType('Page', [ Select::make('post_id') ->options(Page::all()->pluck('title', 'id')->toArray()) ]));

Anyone who knows what I do wrong?
Was this page helpful?