bettercap/bettercap · error · Error

No Pipe decorator found on ${stringify(type)}

Error message

No Pipe decorator found on ${stringify(type)}

What it means

PipeResolver.resolve guard: no @Pipe decorator exists among the type's annotations, yet the type was used where a pipe was expected (declared in a module, or referenced by name in a template's pipe expression). stringify(type) identifies the offending class.

Source

Thrown at modules/ui/ui/vendor.js:34209

    }
    PipeResolver.prototype.isPipe = function (type) {
        var typeMetadata = this._reflector.annotations(resolveForwardRef(type));
        return typeMetadata && typeMetadata.some(createPipe.isTypeOf);
    };
    /**
     * Return {@link Pipe} for a given `Type`.
     */
    PipeResolver.prototype.resolve = function (type, throwIfNotFound) {
        if (throwIfNotFound === void 0) { throwIfNotFound = true; }
        var metas = this._reflector.annotations(resolveForwardRef(type));
        if (metas) {
            var annotation = findLast(metas, createPipe.isTypeOf);
            if (annotation) {
                return annotation;
            }
        }
        if (throwIfNotFound) {
            throw new Error("No Pipe decorator found on " + stringify(type));
        }
        return null;
    };
    return PipeResolver;
}());

/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
// http://cldr.unicode.org/index/cldr-spec/plural-rules
var PLURAL_CASES = ['zero', 'one', 'two', 'few', 'many', 'other'];
/**
 * Expands special forms into elements.
 *

View on GitHub (pinned to 8eca2820f3)

Solutions

  1. Add @Pipe({ name: 'myPipe' }) to the class and implement PipeTransform.transform
  2. Confirm the template pipe name matches the decorator's name property
  3. Remove the class from a module's declarations if it is not actually a pipe
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at modules/ui/ui/vendor.js:34209 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of bettercap/bettercap@8eca2820f3 (2026-09-02). Data as JSON: /api/errors/6640b92130b4cd8c. Report an issue: GitHub.