与终极版表遗漏的类型错误的和不可改变
问题描述:
当我使用[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。
答
每@ 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
时,它将获取此范围内的最新版本,期望没有重大更改。
https://github.com/erikras/redux-form/issues/3488我认为这有助于你。 –
固定 - 将npm版本从3.X升级到5 –