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.

Cannot read properties of undefined (reading 'getRootNode')

See original GitHub issue

Hi there 👋🏻 ,

I hope it is the right place to ask, and I apologize if not. I’m currently trying to bump version of happy-dom from 2.51.0 to a greater one using vitest & vue 3 but I’m facing the following error:

image

happy-dom version: 3.1.0 (I’ve tried multiple version between this one and 2.51.0)
vitest version: 0.10.0

It seems to be related to usage of @headlessui/vue (version 1.5.0) but I haven’t found yet the root cause.

Thanks in advance for your help, wish you a nice day ☀️

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
nilscoxcommented, Jun 22, 2022

Here is a codesandbox with the minimal possible code to produce this error. Indeed, it only happens when running a second test (when adding a .only to the second test, it does not happen).

3reactions
brapifracommented, Jul 7, 2022

I can confirm this is related to happy-dom. I changed the vitest environment to jsdom, and all tests passed. In my case, it also happens when running a second test.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG] - Cannot read property 'getRootNode' of undefined ...
Expectation: it should generate the audits Actual: it throws an exception error TypeError: Cannot read property 'getRootNode' of undefined ...
Read more >
Uncaught TypeError: Cannot read property 'getRootNode' of ...
I'm new to extjs, can any one aware of this issue. Uncaught TypeError: Cannot read property 'getRootNode' of undefined. Store Ext.define('my.
Read more >
Node.getRootNode() - Web APIs | MDN
An object that sets options for getting the root node. The available options are: composed : A boolean value that indicates whether the...
Read more >
Uncaught TypeError: Cannot read property of null - iDiallo
All this means is that you are trying to access a property of an object that is undefined. These usually happens when we...
Read more >
uncaught typeerror: cannot read properties of null ... - You.com
The "Cannot read property 'forEach' of undefined" error often occurs when trying to access an array index that doesn't exist. index.js const arr...
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