Export of the pluginForCjs function in the plugin-react-swc package #1165
Answered
by
ArnaudBarre
asurion-fahad
asked this question in
Q&A
|
In my code I was getting parsing errors from this line of statement |
Answered by
ArnaudBarre
Mar 29, 2026
Replies: 2 comments 5 replies
|
I think this is for cjs/esm compat. |
4 replies
|
Yeah you're right, in the app where I got this parsing error my TS version is 5.8.3 but in the root directory it is 5.5.4. Thanks! I'll make the upgrade |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have been using these settings in the template for quite a long time and I can't reproduce nor we got other reports
I think the actually used TS version when you run the command is not actually 5.8 and you have an older one installed somewhere in your project