【发布时间】:2020-07-06 10:13:41
【问题描述】:
这是在节点 13.11.0 上运行 typescript 模板的全新 cra 安装,尝试运行 npm start 时出现错误
TypeScript error in D:/Projects/personal-site/node_modules/@types/testing-library__react/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```
【问题讨论】:
标签: reactjs typescript create-react-app