Skip to content

TypeError: Cannot read properties of undefined (reading 'setProperty') #57

@FabianDever

Description

@FabianDever

Hey since using ngx-layout with angular 18 I get these erros in the console:

sentry-angular-ivy.js:135 TypeError: Cannot read properties of undefined (reading 'setProperty')
    at ngbracket-ngx-layout-core.mjs:380:41
    at Array.forEach (<anonymous>)
    at StyleUtils._applyMultiValueStyleToElement (ngbracket-ngx-layout-core.mjs:369:14)
    at StyleUtils.applyStyleToElement (ngbracket-ngx-layout-core.mjs:291:14)
    at DefaultLayoutDirective.applyStyleToElement (ngbracket-ngx-layout-core.mjs:1593:21)
    at DefaultLayoutDirective.addStyles (ngbracket-ngx-layout-core.mjs:1554:14)
    at DefaultLayoutDirective.updateWithValue (ngbracket-ngx-layout-flex.mjs:1210:18)
    at MediaMarshaller.updateElement (ngbracket-ngx-layout-core.mjs:1362:17)
    at ngbracket-ngx-layout-core.mjs:1320:26
    at Map.forEach (<anonymous>)

I have the feeling that the error usually occurs when the window size is changed. But that is not always the case.

Material version: 18.0.4
I know this is not that much information. I still hope any of oyu have an idea what is going on.
Let me know if i can provide any additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions