Error: Vitest failed to access its internal state. #25829
Replies: 3 comments 3 replies
-
This presumably is because your main application code imports parts of Vitest and executes these while at the same time running outside Vitest context. It may happen as well if recently installed npm packages contain such imports. E.g. if some npm package imports Vitest in its code and exports that module in its Just context search Meanwhile if the npm package having the module does not re-export the module importing vitest (in its entry point, e.g. in Hope this helps as there is no answer from vitest guys. vitejs/vite#13474 (comment) |
Beta Was this translation helpful? Give feedback.
-
vite.config.ts/vitest.config.ts any import * from vitest |
Beta Was this translation helpful? Give feedback.
-
getting this today in my remix app |
Beta Was this translation helpful? Give feedback.
-
Summary
All of a sudden, with no real changes to my app, I've started getting this error:
My app uses
vitest
for testing, but I am not loadingvitest
anywhere in Storybook not do I have any reason to. I have no idea why this could be happening.Additional information
Storybook version: 7.4.5.
Vitest version: 0.33.0.
Vite version: 4.3.9.
React version: 18.2.0.
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions