Skip to content

TypeError: mobx.defineProperty is not a function #1909

Answered by davetapley
davetapley asked this question in Q&A
Discussion options

You must be logged in to vote

Check npm install for:

npm WARN mobx-state-tree@5.1.5 requires a peer of mobx@^6.3.0 but none is installed. You must install peer dependencies yourself.

Then update your package.json to have:

"mobx": "^6.3.0",

Then npm install again and restart everything.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by davetapley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant