zalmoxisus / mobx-remotedev

MobX DevTools extension
MIT License
327 stars 40 forks source link

Cannot read property filter of undefined #19

Open zepod opened 7 years ago

zepod commented 7 years ago

I encountered following error, using mobx-remotedev.

mobx-err

after removing mobx-remotedev from my module, no error was triggered. Here is my store (module)

// @flow
import remotedev from 'mobx-remotedev'
import {observable} from 'mobx'

class UI {
  @observable preloading :boolean

  constructor() {
    this.preloading = false
  }

  startPreloading() {
    this.preloading = true // <- line 30, thus error comes from here
  }
}

export default remotedev(UI)

I also created StackOverflow question, regarding this topic, so if it isn't mistake on my part, it'd be appreciated, if you'd elaborate on how to resolve this gracefully.

zalmoxisus commented 7 years ago

Sorry, I broke it in the yesterday release of Redux DevTools Extension. Forgot that we're using it here (via API) as well. Fixed in 2.14.1, which will be available on Chrome Store in maximum an hour.

Thanks for letting me know!

ghost commented 7 years ago

I also encountered this problem, and the chrome debugger navigate me to files with name like VM.. It's the problem of the redux extension,window.devToolsOptions not initialized yet?

zalmoxisus commented 7 years ago

@whu-iss-jack, yes. Please make sure that you have Redux DevTools Extension 2.14.1 on chrome://extensions page.