问题描述
TLDR:
与testcafe一起安装的TS版本是3.5.3版。但是,为了使用 BER1_EW BER2_EW BER3_EW BER4_EW BER5_EW BER6_EW
1 7.0876132 7.09928796 7.0871944 6.9631594 7.0867343 7.09934523
2 4.5994509 3.89325300 4.1603601 4.8141982 4.0901617 4.34070903
4 0.1325316 0.09994992 0.1235644 0.1384925 0.2176045 0.09164854
6 0.1072044 0.11755171 0.0608681 0.1436152 0.1094949 0.13081894
语法(jest / create-react-app等各种库使用的语法),我们至少需要使用TS版本3.8。
import Type
所有这些* .d.ts都使用$ ./scripts/test_smoke.sh --debug-on-fail test.ts
Hash: 43a08709b49b552d25bc
Version: webpack 4.41.5
Time: 2113ms
Built at: 09/07/2020 1:26:25 PM
Asset Size Chunks Chunk Names
index.js 1.92 MiB main [emitted] main
Entrypoint main = index.js
[./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 472 bytes {main} [built]
[./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 497 bytes {main} [built]
[./test/smoke/polly/index.js] 3.79 KiB {main} [built]
+ 4 hidden modules
ERROR Cannot prepare tests due to an error.
Error: TypeScript compilation Failed.
/Users/jonathan/web/node_modules/@testing-library/dom/node_modules/pretty-format/build/index.d.ts (7,13): '=' expected.
/Users/jonathan/web/node_modules/@testing-library/dom/node_modules/pretty-format/build/index.d.ts (7,18): ';' expected.
/Users/jonathan/web/node_modules/@testing-library/dom/node_modules/pretty-format/build/index.d.ts (7,31): ';' expected.
语法。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)