Open bestmazzo opened 4 years ago
Seeing the same issue here. @bestmazzo Any progress with your debugging? Almost identical configuration:
kobi@blackbird web $ yarn list | ag 'mobx| vue@'
├─ mobx-state-tree@3.17.2
├─ mobx-vue@2.0.10
├─ mobx@5.15.5
├─ vue@2.6.11
kobi@blackbird web $
Could you pls provide a minimal reproduction?
FYI, I was able to reproduce this same bug without mobx-vue
. A manually-constructed webpack project with a trivial MobX app works as you would expect; but the same trivial app deployed within a vue-cli project fails with these symptoms. I'll update with test case after some sleep.
Well, I'm currently using mobx-vue in a Nuxt application, having a complex data model and multiple libraries involved (some internal widget libraries - deployed with vue-cli - and some third party layout libraries), so this could be a cause. The above jest test is the simplest reproduction I could make, but I'm currently working on recreating a live example with codesandbox.
Meanwhile I've been digging in our code and found out a common misuse:
What actually happens is:
I'll keep digging into it, but I think we should make a specific section in mobx-vue documentation, covering those usage scenarios (vue-cli, mobx-state-tree). in order to help others correctly deal with them.
Hello, I was able to create a codesandbox reproducing the error depicted above: https://codesandbox.io/s/vue-mst-3rueh
Hope this helps better investigating the problem.
Hello, I'm facing a strange exception, and I was able to reproduce it in the tests below. I'm writing here as the test made without mobx-vue doesn't fail, so I presume the problem starts from there.
The environment is: mobx: 5.15.14 mobx-state-tree: 3.17.2 mobx-vue: 2.0.10 vue: 2.6.11
the exception raised is:
but before this, another exception is catched
If necessary, I can provide a more detailed stack-trace