You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there,
I'm not sure if this a bug or a configuration is missing after update to Vite 6.
All my tests are failing after the update. It seems it cannot find the ThemeProvider anymore:
The
myTheme
is a json file:Within the
Welcome.tsx
it renders different components like Typography etc. where the json is used like:${theme.color.text.primary}
The error I get with Vite 6 is like:
Error: Uncaught [TypeError: Cannot read properties of undefined (reading 'text')]
The normal app works and is finding the json values correctly, only Vitest doesn't find it.
Any ideas?
Here is a reproduction.
Beta Was this translation helpful? Give feedback.
All reactions