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
[v13] Error: Cannot read properties of null (reading 'subtree') #1217
Comments
Having the same problem myself, working on a fix and PR right now |
I've published a temporary package for myself, you are welcome to use if you'd like, just remember this is temporary until the fix gets released. Here's how I'm doing my package.json "devDependencies": {
"happy-dom": "npm:zachlankton-happy-dom@13.3.2",
}, |
#1217@patch: Check if options are null.
Thank you again for your contribution @zachlankton! 🌟 I believe the issue is related to code being executed after the Window instance has been closed as options for the |
Describe the bug
We use React and DevExtreme components. After updating to happy-dom 13, some of our tests are failing with the following message:
The problem can be reproduced with the following simple test:
To Reproduce
Steps to reproduce the behavior:
npm i
npm run test
Expected behavior
The tests should run successfully.
Device:
Additional context
This only happens with happy-dom v13 and when Vitest globals are enabled (even if we don't rely on globals but import the functions). It works when downgrading to happy-dom v12 or when disabling Vitest globals.
The text was updated successfully, but these errors were encountered: