Create-react-app: Support TypeScript 3.8

Created on 19 Mar 2020  路  2Comments  路  Source: facebook/create-react-app

Can't use the new type imports introduced by TypeScript 3.8

SyntaxError: /Users/levrik/code/<redacted>/src/theme.ts: Unexpected token (3:12)

  1 | import { createMuiTheme, emphasize } from '@material-ui/core/styles';
  2 | import createPalette from '@material-ui/core/styles/createPalette';
> 3 | import type { SkeletonClassKey } from '@material-ui/lab/Skeleton';

https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html#type-only-imports-exports

react-script 3.4.0
TypeScript 3.8.0

bug report needs triage

Most helpful comment

This should be available in [email protected].

All 2 comments

Closed by #8681

This should be available in [email protected].

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Evan-GK picture Evan-GK  路  3Comments

fson picture fson  路  3Comments

DaveLindberg picture DaveLindberg  路  3Comments

AlexeyRyashencev picture AlexeyRyashencev  路  3Comments

alleroux picture alleroux  路  3Comments