react-app-rewired build: TypeS

2020-03-26  本文已影响0人  李留白

TypeScript error in /app/node_modules/pretty-format/build/index.d.ts(7,13):
'=' expected. TS1005

 5 |  * LICENSE file in the root directory of this source tree.
 6 |  */

7 | import type * as PrettyFormat from './types';
| ^
8 | /**
9 | * Returns a presentation string of your val object
10 | * @param val any potential JavaScript object

解决方法:
typescript 版本升级到3.8.3
"typescript": "3.8.3"

查看: https://github.com/facebook/jest/issues/9703#issuecomment-604132737

上一篇 下一篇

猜你喜欢

热点阅读