From e9e8a202ff0ecfe5df100ad118b5fbed9fc6f452 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Wi=C4=99cek?= Date: Wed, 27 Dec 2017 21:21:52 +0100 Subject: [PATCH] Update immutable to the latest version: 4.0.0-rc.9 Getting this flow error on 4.0.0-rc.2, the error is gone in the latest version, see https://github.com/facebook/immutable-js/issues/1379 ``` $ yarn lint && flow && jest --coverage $ eslint src webpack.config.babel.js --ext .js,.jsx Error: node_modules/immutable/dist/immutable.js.flow:519 519: static of(...values: T[]): SetSeq; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. This type is incompatible with 383: static of(...values: T[]): IndexedSeq; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type This parameter is incompatible: 519: static of(...values: T[]): SetSeq; ^^^^^^^^^ SetSeq. This type is incompatible with 383: static of(...values: T[]): IndexedSeq; ^^^^^^^^^^^^^ IndexedSeq Found 1 error ``` --- tutorial/05-redux-immutable-fetch.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorial/05-redux-immutable-fetch.md b/tutorial/05-redux-immutable-fetch.md index 92fc67b6..2cab7333 100644 --- a/tutorial/05-redux-immutable-fetch.md +++ b/tutorial/05-redux-immutable-fetch.md @@ -44,7 +44,7 @@ console.log(immutablePerson) */ ``` -- Run `yarn add immutable@4.0.0-rc.2` +- Run `yarn add immutable@4.0.0-rc.9` ## Redux