Error: [MobX] Cannot apply '@action' to 'ComplexType.prototype.create'

2021-02-22486次阅读其它

Error: [MobX] Cannot apply '@action' to 'ComplexType.prototype.create':
The field is already decorated with '@action'.
Re-decorating fields is not allowed.
Use '@override' decorator for methods overriden by subclass.

把mobx-state-tree升级到5.0.1试试

"mobx-state-tree": "^5.0.1",

 

上一篇: nrm安装与使用  下一篇: add-asset-html-webpack-plugin将JavaScript或CSS文件添加到HTML中  

Error: [MobX] Cannot apply '@action' to 'ComplexType.prototype.create'相关文章