microsoft / microsoft/monaco-editor
[mobx] There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 46.8k
- Forks
- 4.1k
- Avg merge
- 17h 58m
- Merged PRs (30d)
- 1
Description
[mobx] There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use configure({ isolateGlobalState: true })
项目使用mobx@6,而monaca用的是mobx@4,出现了实例冲突问题,我应该如何解决,如果使用了configure,在项目启动时确实正常了,当我打开编辑器仍然会有新的错误Error: [MobX] Cannot apply '@action' to 'ComplexType.prototype.create',说明monaca依赖的mobx@4并没有相关隔离配置
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The report identifies a project using MobX 6 and a Monaca dependency using MobX 4, with a startup configure workaround but no repository file or test. Begin by reproducing the conflict when opening the editor and trace how both versions are loaded; done means the warning and the ComplexType.prototype.create @action error no longer occur.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100