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

Can't load config files in workspace since vitest 2.1.5 #1034

Open
jpleclerc opened this issue Dec 6, 2024 · 0 comments
Open

Can't load config files in workspace since vitest 2.1.5 #1034

jpleclerc opened this issue Dec 6, 2024 · 0 comments

Comments

@jpleclerc
Copy link

jpleclerc commented Dec 6, 2024

Environment


  • Operating System: Linux
  • Node Version: v18.20.3
  • Nuxt Version: 3.14.1592
  • CLI Version: 3.16.0
  • Nitro Version: 2.10.4
  • Package Manager: [email protected]
  • Builder: -
  • User Config: default
  • Runtime Modules: ../../packages/package-one/src/module, ../../packages/package-two/src/module
  • Build Modules: -

Reproduction

You get the error when using vitest 2.1.8 (the error appears since 2.1.5): https://stackblitz.com/edit/github-n797ja-hxhseq

It works in 2.1.4: https://stackblitz.com/edit/github-n797ja-2rtuvw

Describe the bug

In a workspace with multiple projects, it is no longer possible to call defineVitestConfig because of unctx conflicts:

Error: Context conflict
    at checkConflict (file:///home/projects/github-n797ja-hxhseq/node_modules/unctx/dist/index.mjs:25:13)
    at set (file:///home/projects/github-n797ja-hxhseq/node_modules/unctx/dist/index.mjs:59:22)
    at initNuxt (file:///home/projects/github-n797ja-hxhseq/node_modules/nuxt/dist/index.mjs:4404:21)
    at ready (file:///home/projects/github-n797ja-hxhseq/node_modules/nuxt/dist/index.mjs:4306:26)
    at loadNuxt (file:///home/projects/github-n797ja-hxhseq/node_modules/nuxt/dist/index.mjs:4871:16)

Could be related to #537

Additional context

No response

Logs

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

No branches or pull requests

1 participant