【React】export ‘makeObservable‘ (imported as ‘makeObservable‘) was not found in ‘

2022-05-07 14:55:47 浏览数 (2)

问题描述:

代码语言:javascript复制
WARNING in ./node_modules/mobx-utils/mobx-utils.module.js 629:8-22
export 'makeObservable' (imported as 'makeObservable') was not found in 'mobx' 

如下图所示:

WX20220507-143024@2x.pngWX20220507-143024@2x.png

解决方案:

降级 mobx-utils5.6.2,如下:

代码语言:javascript复制
npm i mobx-utils@5.6.2 --force

0 人点赞