Skip to content
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

'TypeError: Cannot add property 3, object is not extensible' when using [email protected] with sveltekit #7270

Closed
6 tasks done
johnal95 opened this issue Jan 16, 2025 · 2 comments · Fixed by #7271
Closed
6 tasks done

Comments

@johnal95
Copy link

johnal95 commented Jan 16, 2025

Describe the bug

I came across this issue when upgrading vitest from 3.0.0-beta.4 to vitest 3.0.0 on a sveltekit project, where it seems the configuration fails to be resolved:

TypeError: Cannot add property 3, object is not extensible
    at Array.push (<anonymous>)
    ...

(minimal reproduction repo linked as part of this issue)

Reproduction

https://github.com/johnal95/vitest-with-sveltekit-plugin.git

System Info

System:
  OS: macOS 15.2
  CPU: (12) arm64 Apple M3 Pro
  Memory: 119.56 MB / 36.00 GB
  Shell: 5.9 - /bin/zsh
Binaries:
  Node: 22.12.0
  npm: 10.9.0
  pnpm: 9.15.4
npmPackages:
  vite: 6.0.7 => 6.0.7 
  vitest: 3.0.0 => 3.0.0

Used Package Manager

pnpm

Validations

andy0130tw added a commit to qbane/sveltekit-template that referenced this issue Jan 16, 2025
@dominikg
Copy link
Contributor

minimal reproduction: https://stackblitz.com/edit/vitejs-vite-ya6cn6ih?file=vite.config.js&terminal=test

seems to be caused by a frozen resolve.conditions object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants