Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
FabianDever opened this issue Oct 1, 2024 · 1 comment

Comments

@FabianDever
Copy link

FabianDever commented Oct 1, 2024

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

@DuncanFaulkner
Copy link
Contributor

@FabianDever thanks for the heads up. Are you able to provide a simple stackblitz project recreating the issue, not a problem if not, will take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants