solidjs / solidjs/solid-vite-plugin
vite-plugin-solid v2.8.3+ causes: `TypeError: Cannot read properties of undefined (reading 'extend')`
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 520
- Forks
- 70
- Avg merge
- 23h 35m
- Merged PRs (30d)
- 39
Description
Since updating to vite-plugin-solid v2.8.3 (& still on v2.9.0), all my unit tests have been failing in Vitest with this error:
[error] TypeError: Cannot read properties of undefined (reading 'extend')
[error] ❯ Object.<anonymous> node_modules/@testing-library/jest-dom/dist/vitest.js:18:15
For now, I'm going to stay on v2.8.2 where the issue doesn't happen
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with vite-plugin-solid v2.8.3 and v2.9.0, then compare it with v2.8.2. Start at node_modules/@testing-library/jest-dom/dist/vitest.js:18, where the undefined value is read; done means identifying the version-related cause, applying a compatible fix, and confirming the unit tests pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vite
- Domain
- testing, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100