Multilple MobX instances – There are multiple, different versions of MobX active
kr4chinin opened this issue · 0 comments
kr4chinin commented
I have a project where I am using this package, I also have mobx
and mobx-react-lite
packages in it:
"mobx": "^6.12.0",
"mobx-react-lite": "^4.0.5",
When I am trying to use RcGantt
component I am getting this error in console:
rc-gantt.js?v=ce4c31c5:3737 Uncaught Error: [mobx] There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`
I've tried overriding rc-gantt
mobx
version in my package.json
file like a so:
"overrides": {
"mobx": "^6.12.0",
"mobx-react-lite": "^4.0.5"
}
... and I've also tried configuring my project's mobx
with this line isolateGlobalState: true
. Nothing seems to work. Error still occures.
Although it seems to be working just fine for now I was wondering whether you could update your package's mobx
and mobx-react-lite
version. Or, at least, put isolateGlobalState: true
in mobx configuration (issue).
Best regards 👋🏼