Project created with create-react-app 2.1 with TS 3.1.6 is not compiling and falling with error:
yarn build
yarn run v1.12.3
$ react-scripts build
Creating an optimized production build...
Failed to compile.
.../node_modules/@uifabric/utilities/lib/KeyCodes.d.ts
Type error: Ambient const enums are not allowed when the '--isolatedModules' flag is provided. TS1209
6 | export declare const enum KeyCodes {
| ^
7 | backspace = 8,
8 | tab = 9,
9 | enter = 13,
"dependencies": {
"@types/dagre": "^0.7.40",
"@types/jest": "^23.3.9",
"@types/node": "^10.12.5",
"@types/react": "^16.7.3",
"@types/react-dom": "^16.0.9",
"dagre": "^0.8.2",
"office-ui-fabric-react": "^6.102.0",
"react": "^16.6.1",
"react-dom": "^16.6.1",
"react-redux": "^5.1.1",
"react-router-dom": "^4.3.1",
"react-scripts": "2.1.1",
"redux": "^4.0.1",
"redux-devtools-extension": "^2.13.5",
"redux-thunk": "^2.3.0",
"typesafe-actions": "^2.0.4",
"typescript": "^3.1.6"
},
Project created with create-react-app 2.1 with TS 3.1.6 is not compiling and falling with error:
Project dependencies: