You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TypeScript syntax error in combination with arrow functions, generics and async/await #6360
I think this error comes from babel interaction with typescript, since it works OK when using the typescript compiler directly yet it fails when compiling typescript through babel, so I'd also try to post it into the babel repo
Activity
sbusch commentedon Feb 22, 2019
The problem still exists with project generated by 2.1.5, see branch react-scripts-2.1.5 at my repro.
I also tested with new project generated by current HEAD 01fbb79 of
create-react-app, with the same outcome.nsmithdev commentedon Mar 11, 2019
Add TypeScript linting support
Issue #5641
Pull #6513
xaviergonz commentedon Apr 17, 2019
I think this error comes from babel interaction with typescript, since it works OK when using the typescript compiler directly yet it fails when compiling typescript through babel, so I'd also try to post it into the babel repo
xaviergonz commentedon Apr 17, 2019
Apparently it got fixed here
babel/babel#9560
so it should be fixed by upgrading babel to the latest version
xaviergonz commentedon Apr 17, 2019
babel REPL: https://babeljs.io/repl#?babili=false&browsers=&build=&builtIns=false&spec=false&loose=false&code_lz=MYewdgzgLgBAZgSwE7RgXhgQwgTzMGAHgA0YBTADyjLABMIYBvAXwD4AKASnVaYCgYWAO6YEsCCAC2ZKAAsEYAOZcA3H2Zq-oSOLLba6LLnxEAmuSo16TNlx42VQA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=module&lineWrap=true&presets=es2017%2Ctypescript&prettier=false&targets=&version=7.4.3&externalPlugins=%40babel%2Fplugin-transform-typescript%407.4.0
ianschmitz commentedon Apr 18, 2019
You can try our latest 3.0 alpha which has updated versions of babel: #6475
sbusch commentedon Jul 10, 2019
I can confirm his is no longer an issue with CRA 3.0 (I'm currently using 3.0.1).