Skip to content
This repository was archived by the owner on Jun 28, 2026. It is now read-only.

TypeError: this.$slots.default is not a function [Splitter] #7931

Description

@pilotkid

Describe the bug

When using a splitter and having an empty panel the exception is thrown

TypeError: this.$slots.default is not a function

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

https://stackblitz.com/edit/primevue-4-vite-issue-template-jaisz8ts

Environment

Windows 11
Vs code
Vite

Vue version

3.5.13

PrimeVue version

4.3.3

Node version

22.11.0

Browser(s)

Any

Steps to reproduce the behavior

  1. Create a Splitter component
  2. Leave one of the SplitterPanel empty
  3. Reload the page
  4. After doing the reload the error should be thrown

Expected behavior

If a SplitterPanel is empty it should just show a blank panel segment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugIssue contains a bug related to a specific component. Something about the component is not working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions