Next.js Discord

Discord Forum

next.js automatically setting jsx option

Unanswered
Gray Silky-flycatcher posted this in #help-forum
Open in Discord
Gray Silky-flycatcherOP
Hi,

Next.js changes the "jsx": "VALUE" option in the tsconfig to --> "jsx": "preserve" every time i run next dev.
This is not okay because when this setting is set to preserve, all my code is not recognized anymore as tsx / jsx code. I added an example of how the code looks as an image.
Setting it to "jsx": "react-jsx", solves this issue.

Here's what I found with my research: https://github.com/vercel/next.js/discussions/19155 & https://stackoverflow.com/a/75475728/15161834

1 Reply

Gray Silky-flycatcherOP