Repository navigation
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. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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
myThemeis a json file:Within the
Welcome.tsxit 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?
All reactions