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

mobx.makeObservable is not a function? #281

Open
nickperkinslondon opened this issue Oct 28, 2020 · 4 comments
Open

mobx.makeObservable is not a function? #281

nickperkinslondon opened this issue Oct 28, 2020 · 4 comments

Comments

@nickperkinslondon
Copy link

{ createViewModel } = require 'mobx-utils'	

thing = mobx.observable({
    attr:'value'
})

vm = createViewModel(thing)

TypeError: mobx.makeObservable is not a function
at new ViewModel (D:\Dropbox\workspace\npl\node_modules\mobx-utils\mobx-utils.umd.js:633:18)
at createViewModel (D:\Dropbox\workspace\npl\node_modules\mobx-utils\mobx-utils.umd.js:779:16)

@nickperkinslondon
Copy link
Author

$ npm view mobx version
6.0.1
$ npm view mobx-utils version
6.0.1

@mweststrate
Copy link
Member

mweststrate commented Oct 29, 2020 via email

@yaarams
Copy link

yaarams commented Jan 6, 2021

I get this warning:
WARNING in ../node_modules/mobx-utils/mobx-utils.module.js 629:8-22
"export 'makeObservable' was not found in 'mobx'
mobx: 5.15.4
mobx-utils: 6.0.1

this might have something to do with version 6.0.1 of mobx-utils, since when I downgraded to 5.6.1 it stopped.

@mweststrate
Copy link
Member

mweststrate commented Jan 6, 2021 via email

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

3 participants