However, if you go to App.tsx and change the Button import to the component file (./Button/Button) it works normally.
Expected behavior
It should render the button normally
Context
We're trying to add pigment to a large project with both js and ts. On starting our server with the pigment plugin active, vite throws this kind of error for hundreds of .jsx files.
It seems like it's trying to parse the files as ts. On empty fragments <> for example, it says that Type parameter list cannot be empty.
Your environment
npx @mui/envinfo
```
Don't forget to mention which browser you used.
Output from `npx @mui/envinfo` goes here.
```
Steps to reproduce
https://codesandbox.io/p/github/bromanazzi/pigment-test/main
Current behavior
Shows the error
Unexpected token, expected: ","
However, if you go to
App.tsx
and change the Button import to the component file (./Button/Button
) it works normally.Expected behavior
It should render the button normally
Context
We're trying to add pigment to a large project with both js and ts. On starting our server with the pigment plugin active, vite throws this kind of error for hundreds of .jsx files. It seems like it's trying to parse the files as ts. On empty fragments
<>
for example, it says thatType parameter list cannot be empty.
Your environment
``` Don't forget to mention which browser you used. Output from `npx @mui/envinfo` goes here. ```npx @mui/envinfo
Search keywords: typescript modules export transform parse