filamentphp/filament · error · LogicException

No nested rule builder component found.

Error message

No nested rule builder component found.

What it means

Error "No nested rule builder component found." thrown in filamentphp/filament.

Source

Thrown at packages/tables/src/Filters/QueryBuilder.php:436

        $builder = $this->getSchema()->getComponent(fn (Component $component): bool => $component instanceof RuleBuilder);

        if (! ($builder instanceof RuleBuilder)) {
            throw new LogicException('No rule builder component found.');
        }

        return $this->cachedRuleBuilder = $builder;
    }

    protected function getNestedRuleBuilder(Schema $schema, string $orGroupIndex): RuleBuilder
    {
        $builder = $schema
            ->getComponent(fn (Component $component): bool => $component instanceof Repeater)
            ?->getChildSchema($orGroupIndex)
            ?->getComponent(fn (Component $component): bool => $component instanceof RuleBuilder);

        if (! ($builder instanceof RuleBuilder)) {
            throw new LogicException('No nested rule builder component found.');
        }

        return $builder;
    }

    /**
     * @param  array<string, mixed>  $rule
     */
    protected function tapOperatorFromRule(array $rule, Schema $schema, Closure $callback, bool $shouldUseRawSettings = false): void
    {
        $constraint = $this->getConstraint($rule['type']);

        if (! $constraint) {
            return;
        }

        $operator = $rule['data'][$constraint::OPERATOR_SELECT_NAME];

View on GitHub (pinned to 53483fa934)

When it happens

Trigger: Thrown at packages/tables/src/Filters/QueryBuilder.php:436 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of filamentphp/filament@53483fa934 (2026-08-17). Data as JSON: /api/errors/20e184db65f07b97. Report an issue: GitHub.