question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'

See original GitHub issue

Failed to execute ‘getComputedStyle’ on ‘Window’: parameter 1 is not of type ‘Element’

if (isString(prop)) {
        prop = getPrefixedProp(prop);
        return arguments.length > 1 ? this.each(function (v) {
          return v.style[prop] = value;
        }) : win.getComputedStyle(this[0])[prop];
      }

this is the code of materialize js – 505 line.

When i am going to call $('.sidenav').sidenav(); then wen i am moving another pages by click menu it show this error on console but another everything is work fine. without this error

VM1414 materialize.js:505 Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

12reactions
wrappixelcommented, Sep 30, 2018

Did you used collapsible in side menu? if yes then you can check that collapsible must have collapsible body to open, if it doesn’t find any collapsible body then it throw error, kindly put blank div with collapsible-body class and check.

i have the same error and it got solved by doing this.

0reactions
cristoferraocommented, Jul 12, 2021

Did you used collapsible in side menu? if yes then you can check that collapsible must have collapsible body to open, if it doesn’t find any collapsible body then it throw error, kindly put blank div with collapsible-body class and check.

i have the same error and it got solved by doing this.

thanks was stuck for hours on this

Read more comments on GitHub >

github_iconTop Results From Across the Web

JS: Failed to execute 'getComputedStyle' on 'Window ...
You receive it because the parameter has an incorrect type. The most common case is that you try to pass an element that...
Read more >
Failed to execute 'getComputedStyle' on 'Window' - OutSystems
On my mobile app i am getting an Error on every page which says "Failed to execute 'getComputedStyle' on 'Window': parameter 1 is...
Read more >
Failed to execute 'getComputedStyle' on 'Window ... - GitHub
Uncaught (in promise) TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'. at Proxy.
Read more >
parameter 1 is not of type 'Element'. HELP : r/learnjavascript
Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'. HELP. Hi,. I'm trying to make a game to test...
Read more >
T280305 Failed to execute 'getComputedStyle' on 'Window'
Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'. Closed, InvalidPublicPRODUCTION ERROR.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found