How to enable js files to be parsed as jsx #14652
Unanswered
thusharamitrai
asked this question in
Q&A
Replies: 2 comments 1 reply
-
The easiest, yet best solution is to change your There are walk-arounds here #3112. However, As it is mentioned in the discussion, using the walk-around causes unexpected behaviors like HMR not working. |
Beta Was this translation helpful? Give feedback.
0 replies
-
try this in vite.config.js
|
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
-
I have tried all possible solutions that i could find online. i have migrated my react js project to vite js and am facing issues when running 'vite serve'
Im getting the error
here is my vite.config.js
here is my tsconfig.json
i keep getting the error asking me to enable jsx loader for js files even though i have already done that. any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions