Tips "react-scripts": "5.0.0" will course jsx error
yinsang opened this issue · comments
pragma and pragmaFrag cannot be set when runtime is automatic.
/** @jsx Didact.createElement */
const element = (
<div id="foo">
<a href="">bar</a>
<b></b>
</div>
)
"react-scripts": "3.0.0" was OK.
1/3/2022
Got it too.
8/11/2022
Got it too.
/** @jsxRuntime classic /
/* @jsx Didact.createElement */
You can use this to solve the above error, it worked for me, just change jsx runtime to classic mode