[Bug]: Parsing error '!' with typescript + react presets #13456
Labels
i: duplicate
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
馃捇
How are you using Babel?
Programmatic API (
babel.transform
,babel.parse
)Input code
Configuration file name
No response
Configuration
No response
Current and expected behavior
Should transform to
Omit typescript's
!
Environment
Babel v7.14.5
@babel/preset-typescript: 7.14.5 => 7.14.5
@babel/preset-react: 7.14.5 => 7.14.5
Node 14
Possible solution
No response
Additional context
https://babeljs.io/repl#?browsers=defaults%2C%20not%20ie%2011%2C%20not%20ie_mob%2011&build=&builtIns=false&corejs=3.6&spec=false&loose=false&code_lz=LYQwHgEgpglg5gCwC4EIAEAeNBGIA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=module&lineWrap=true&presets=env%2Creact%2Ctypescript&prettier=false&targets=&version=7.14.5&externalPlugins=
This bug reproduces only with
react
+typescript
presets.The text was updated successfully, but these errors were encountered: