JSX Parsing regression 12.2.X -> 12.3.X ("Unexpected token. Did you mean {'>'}
or >
?")
#40773
Closed
1 task done
{'>'}
or >
?")
#40773
Verify canary release
Provide environment information
$ next info Operating System: Platform: darwin Arch: x64 Version: Darwin Kernel Version 21.6.0: Wed Aug 10 14:28:23 PDT 2022; root:xnu-8020.141.5~2/RELEASE_ARM64_T6000 Binaries: Node: 16.14.2 npm: 8.13.2 Yarn: 1.18.0 pnpm: N/A Relevant packages: next: 12.3.2-canary.0 eslint-config-next: N/A react: 17.0.2 react-dom: 17.0.2
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
The file below compiles w/out errors on
next@12.2.*
, but fails with the following errors onnext@12.3.1
(andnext@canary
:"joke.js"
I.e. This appears to be BREAKING CHANGE of some sort in the JSX parsing logic.
NOTE: In case it's not obvious from the file this error is in, this isn't a critical issue for us. 😆 We have a workaround (escaping both leading and trailing angle-brackets) so this isn't a big deal. I'm just submitting this so you're aware of the issue. I.e. Feel free to close if this isn't worth the trouble to fix.
Expected Behavior
See description
Link to reproduction
See description
To Reproduce
See description
The text was updated successfully, but these errors were encountered: