You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prior to version 4 (tested on 3.2.5), I could use a custom jsx factory function with the "jsx": "preserve" tsconfig option. Now, it seems like it fails to compile correctly. If this change was intentional, please point to the change log for this.
N/A - vite doesn't report any errors in the terminal. Console only displays the above Uncaught SyntaxError: Unexpected token '<' (at page.tsx:1:16) error.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Yes, this change is intentional.
In 3.x, Vite didn't respect JSX related options in tsconfig.json.
But Vite does respect other options in tsconfig.json and now Vite respect those (#11049).
Describe the bug
Prior to version 4 (tested on 3.2.5), I could use a custom jsx factory function with the
"jsx": "preserve"
tsconfig option. Now, it seems like it fails to compile correctly. If this change was intentional, please point to the change log for this.Reproduction
https://github.com/ConnorJamesLow/texsaur/tree/feature/custom-component-demo/examples/vite-custom-element/site
Steps to reproduce
npm create vite@latest
.vite.config.js
:tsconfig.json
:.tsx
file importing your factory and call it on your page, e.g.:npm run dev
(i.e.vite
)Prior as late as [email protected], the result of
page.tsx
looks like:System Info
Used Package Manager
npm
Logs
N/A - vite doesn't report any errors in the terminal. Console only displays the above
Uncaught SyntaxError: Unexpected token '<' (at page.tsx:1:16)
error.Validations
The text was updated successfully, but these errors were encountered: