2017-10-10 49 views
4

當我使用[email protected][email protected]我得到:與終極版表遺漏的類型錯誤的和不可改變

Uncaught TypeError: (0 , _immutable.isCollection) is not a function

也試過版本:

[email protected] with [email protected], 
[email protected] with [email protected], 
[email protected] with [email protected] 

我使用React16。

+2

https://github.com/erikras/redux-form/issues/3488我認爲這有助於你。 –

+0

固定 - 將npm版本從3.X升級到5 –

回答

1

每@ NarasimhaReddy的評論:

https://github.com/erikras/redux-form/issues/3488

[email protected]需要[email protected]或更高。 它引入了一項重大更改,使其與[email protected]不兼容

這裏的真正罪魁禍首是在應用semantic versioning時出現錯誤。 如果您的依賴關係被定義爲"redux-form": "^7.0.4",那麼npm預計它可以使用7.0.4-8.0.0之間的任何版本。

當您運行npm install時,它將獲取此範圍內的最新版本,期望沒有重大更改。