You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Vue3集成Amplify DataStore时触发Immer MapSet插件未加载错误的求助

Vue3集成Amplify DataStore时触发Immer MapSet插件未加载错误的求助

各位大佬求助!我在Vue3里搭配Amplify和Amplify DataStore开发时,碰到了一个让人摸不着头脑的错误——明明只是在事件处理器里设置ref的值这种简单操作,以前都能正常运行,现在突然就不行了😅

我猜大概率是依赖相关的问题,但我对Immer完全不了解,也搞不清到底哪里出了岔子。搜了半天全网都没找到对应的解决方案,通常这种情况都是我自己哪里写错了,但这次说不定真不是我的锅?先谢谢各位的帮忙了!我自己也会继续排查,现在先把报错的栈信息贴出来:

immer.esm.js:1 Uncaught (in promise) Error: [Immer] The plugin for 'MapSet' has not been loaded into Immer. To enable the plugin, import and call `enableMapSet()` when initializing your application.

at n (immer.esm.js:1:210)

at b (immer.esm.js:1:2048)

at R (immer.esm.js:1:3550)

at Object.get (immer.esm.js:1:14257)

at Function.entries (<anonymous>)

at datastore.js:556:1

at produce (immer.esm.js:1:16032)

at Model.copyOf (datastore.js:545:32)

at traverseModel (util.js:130:1)

at IndexedDBAdapter.<anonymous> (IndexedDBAdapter.js:319:56)

at step (tslib.es6.js:100:1)

at Object.next (tslib.es6.js:81:46)

at fulfilled (tslib.es6.js:71:43)

备注:内容来源于stack exchange,提问作者Cari

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.23 09:54:07