Skip to content

error when importing decorator in vitejs #3227

Answered by kubk
beebole asked this question in Q&A
Discussion options

You must be logged in to vote

The decorate API has been removed in MobX 6. Use makeObservable/makeAutoObservable as a replacement.

https://github.com/mobxjs/mobx/blob/main/packages/mobx/CHANGELOG.md#breaking-changes

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@beebole
Comment options

Answer selected by beebole
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants