Skip to content

Error using directive #44

Open
Open
@aakoch

Description

@aakoch

I don't have much information, but I'm adding 2 attributes to some components and am getting this error:

core.mjs:6362 ERROR TypeError: Cannot read properties of undefined (reading 'pipe')
    at set setFocus [as setFocus] (angular-input-focus.mjs:50:15)
    at setInputsForProperty (core.mjs:13120:13)
    at elementPropertyInternal (core.mjs:12218:9)
    at ɵɵproperty (core.mjs:14457:9)
    at MyComponent_ng_container_5_Template (my.component.html:11:70)
    at executeTemplate (core.mjs:11835:9)
    at refreshView (core.mjs:11698:13)
    at refreshEmbeddedViews (core.mjs:12747:17)
    at refreshView (core.mjs:11722:9)
    at refreshComponent (core.mjs:12793:13)

This is the code I'm using and it is working on some page:

[libFocus]="false"
[setFocus]="focusEventEmitterMap.get('controlName')!"

The error shows up on page load.

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions