-
Notifications
You must be signed in to change notification settings - Fork 13
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
Vitest >= 0.32 "This component must be used inside a <RecoilRoot> component." #31
Comments
Hi, it looks like the error is happening on |
@luisanton-io Thanks for getting back to me. I use the latest recoil and latest nexus |
Could be similar to this? |
@luisanton-io Here is the codebase I am using it in https://github.com/Kamahl19/react-starter . I am wrapping the whole application in In this commit I have updated to latest Vitest but had to stop using Nexus and partly copy-paste its functionality Kamahl19/react-starter@c568c27 |
Weird, I also ran into this when migrating from jest to vitest. I'm not at all sure what would cause this, I have a recoil root in my test, and it worked fine under jest. The only thing I can think is that I'm also migrating my package to ESM at the same time, probably something about loading this package (which appears to be commonjs) in an ESM package is somehow broken. |
After upgrading from Vitest 0.31.4 to 0.32.0 I am getting
The text was updated successfully, but these errors were encountered: