-
Notifications
You must be signed in to change notification settings - Fork 80
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
Package subpath './environments' is not defined by "exports" #509
Comments
I have the same problem. I will return the version of vitest to 0.33.0 and it will be normal. |
Afaik you should be importing the utils from |
@oskarols I have the same problem even not importing the utils at all |
Then the most likely culprit is that you're using v0.34 of Vitest. It seems they made some changes related to environments in that version. These changes seem to be breaking some portion of nuxt-vitest. Try downgrading Vitest to 0.33. |
@oskarols yep, it helped! Thanks! |
This has been resolved in the latest nightly release of |
Followed the guide to the T on the setup on nuxt-vitest. Getting this error:
Framework Nuxt3, Node v16.19.0
script part of the Component looks like this:
test file:
package.json deps:
Not sure what is happening. I read somewhere in the thread that it doesnt support
cjs
. But I am not sure if this is the issue and how to deal with it sadly.. Please advise..Repository with easy reproduction : https://github.com/dtoxvanilla1991/nuxt-vitest-issue
Codesandbox reproduction fails when I try to import the demo app..sorry!
The text was updated successfully, but these errors were encountered: