Replies: 1 comment 1 reply
-
I suspect this is related to resolution change https://vite.dev/guide/migration.html#general-changes but it would be great to have a reproduction to properly diagnose the issue. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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?
Beta Was this translation helpful? Give feedback.
All reactions