2017-10-10 51 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时,它将获取此范围内的最新版本,期望没有重大更改。