Why these error are happening in Vite-react project? #4083
Replies: 2 comments
-
Vite expects jsx to only be in files that have the .jsx or .tsx extension, otherwise it doesn't process the jsx. So, I can't speak for the other error, you would likely need to provide more information around how you are using |
Beta Was this translation helpful? Give feedback.
-
Hey, I get exectly the same issue. So the error looks like vite doesn't want to compile if a file has |
Beta Was this translation helpful? Give feedback.
-
When I am importing react table like this:
import { useTable } from 'react-table/src';
I get error like this in my console:
But when I import like this:
import { useTable} from 'react-table';
I get error like this in my browser console
My project is vite. Any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions