Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danieldiekmeier/happy-dom-svelte5-repro
https://github.com/danieldiekmeier/happy-dom-svelte5-repro
Last synced: about 7 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/danieldiekmeier/happy-dom-svelte5-repro
- Owner: danieldiekmeier
- Created: 2024-11-04T14:12:06.000Z (11 days ago)
- Default Branch: main
- Last Pushed: 2024-11-04T14:20:40.000Z (11 days ago)
- Last Synced: 2024-11-04T15:29:17.582Z (11 days ago)
- Language: TypeScript
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Reproduction
Reproduction for [testing-library/svelte-testing-library/issues/407](https://github.com/testing-library/svelte-testing-library/issues/407).
1. Install dependencies with `pnpm install`
2. Run the specs with `pnpm test`
3. You should see this error:```
TypeError: Cannot read properties of null (reading 'Symbol(nodeArray)')
❯ get firstChild node_modules/.pnpm/[email protected]/node_modules/happy-dom/src/nodes/node/Node.ts:272:25
❯ get_first_child node_modules/.pnpm/[email protected]/node_modules/svelte/src/internal/client/dom/operations.js:85:28
83| * @returns {Node | null}
84| */
85| /*@__NO_SIDE_EFFECTS__*/
| ^
86| export function get_next_sibling(node) {
87| return next_sibling_getter.call(node);
❯ Module.child node_modules/.pnpm/[email protected]/node_modules/svelte/src/internal/client/dom/operations.js:109:10
❯ Repro src/Repro.svelte:37:33
❯ node_modules/.pnpm/[email protected]/node_modules/svelte/src/internal/client/render.js:230:16
❯ update_reaction node_modules/.pnpm/[email protected]/node_modules/svelte/src/internal/client/runtime.js:327:56
❯ Module.update_effect node_modules/.pnpm/[email protected]/node_modules/svelte/src/internal/client/runtime.js:455:18
❯ create_effect node_modules/.pnpm/[email protected]/node_modules/svelte/src/internal/client/reactivity/effects.js:98:26
❯ Module.branch node_modules/.pnpm/[email protected]/node_modules/svelte/src/internal/client/reactivity/effects.js:331:9
❯ node_modules/.pnpm/[email protected]/node_modules/svelte/src/internal/client/render.js:212:25
```