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
Bug: v0.7.0 - Error while requiring module vitest-environment-nuxt/module
: Error: Cannot find module 'vitest-environment-nuxt/module'
#584
Comments
Perhaps related to the vitest new version and the module package requirements not supporting 0.31 https://github.com/danielroe/nuxt-vitest/blob/main/packages/vitest-environment-nuxt/package.json#L56 |
If using the |
Also see another user with this issue in comments of the closed issue here: https://github.com/danielroe/nuxt-vitest/issues/68 |
Same thing happen to me after installing nuxt-vitest when runing test i getting this error
|
The only way I could make this work was then installing these 2 with the specific versions.
There seems to be a dependency conflict between vitest@0.31.1, @nuxt/test-utils@3.5.0 and nuxt-vitest@0.7.0 |
Also having this issue. Only seems to work with |
That is because the package.json are currently locked to A quick PR should resolve these I think, I'll try sort this out. |
I'm not definite but I'm pretty sure danielroe/nuxt-vitest#185 should resolve this if you wanted to check My thinking is that although |
This should be resolved in the latest version of Nuxt (v3.5.2) via nuxt/nuxt#21082. Let me know if not and I'll happily reopen. |
It seems after upgrading to 0.7.0 with vitest 0.31 I receive the error:
Which looks like it is trying to be installed by the module required for this package.
Strange though as I see
vitest-environment-nuxt
as a dependency in the package.jsonIt could be @nuxt/test-utils > vitest conflicting versions. I'll do some digging.
The text was updated successfully, but these errors were encountered: