Использование потока типов для проверки моего кода избыточного реагирования для проверки типа c.
export default connect<Props, OwnProps, _, _, _, _>(mapStateToProps, { fetchPosts })(Home);
Когда я пишу этот фрагмент кода, мой код не компилируется со следующими ошибками
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: <dir>/repo/src/client/pages/Home/index.js: Unexpected token, expected ";" (82:28)
80 | };
81 |
> 82 | export default connect<Props, OwnProps, _, _, _, _>(mapStateToProps, { fetchPosts })(Home);
| ^
83 |
at Object._raise (<dir>/repo/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:742:17)
at Object.raiseWithData (<dir>/repo/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:735:17)
at Object.raise (<dir>/repo/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:729:17)
at Object.unexpected (<dir>/repo/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:8757:16)
at Object.semicolon (<dir>/repo/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:8739:40)
at Object.parseExportDefaultExpression (<dir>/repo/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:12284:12)
at Object.parseExportDefaultExpression (<dir>/repo/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:2589:18)
at Object.parseExport (<dir>/repo/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:12185:31)
at Object.parseExport (<dir>/repo/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:2748:24)
at Object.parseStatementContent (<dir>/repo/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:11185:27)
@ ./src/client/pages/index.js 56:13-42 31:11-33:13
@ ./src/routes.js
@ ./src/client.js
@ multi ./src/client.js
Child html-webpack-plugin for "index.html":
1 asset
Entrypoint undefined = index.html
[./node_modules/html-webpack-plugin/lib/loader.js!./tools/index.html] 277 bytes {0} [built]
[./node_modules/lodash/lodash.js] 528 KiB {0} [built]
[./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 472 bytes {0} [built]
[./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 497 bytes {0} [built]
ℹ 「wdm」: Failed to compile.```