Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multilple MobX instances – There are multiple, different versions of MobX active #32

Open
kr4chinin opened this issue Mar 3, 2024 · 0 comments

Comments

@kr4chinin
Copy link
Contributor

kr4chinin commented Mar 3, 2024

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 })`
MobX error in console

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 👋🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant