You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
在 nuxt3 中因为 menu 使用了 getCurrentInstance 极端情况会导致出现下面的报错
runtime-core.esm-bundler.js:261 TypeError: Cannot read properties of null (reading 'parent')
at Proxy.render (menu-item.mjs:204:25)
at Or (runtime-core.esm-bundler.js:876:16)
at Os.A [as fn] (runtime-core.esm-bundler.js:5995:46)
at Os.run (reactivity.esm-bundler.js:176:19)
at D.h.update (runtime-core.esm-bundler.js:6126:16)
at D (runtime-core.esm-bundler.js:6136:12)
at oe (runtime-core.esm-bundler.js:5904:7)
at G (runtime-core.esm-bundler.js:5858:9)
at x (runtime-core.esm-bundler.js:5326:11)
at k (runtime-core.esm-bundler.js:5574:7)
tdesign-vue-next 版本
1.8.0
重现链接
https://nuxt.com/docs/api/composables/use-nuxt-app#runwithcontext
重现步骤
在 nuxt3 中因为 menu 使用了 getCurrentInstance 极端情况会导致出现下面的报错
runtime-core.esm-bundler.js:261 TypeError: Cannot read properties of null (reading 'parent')
at Proxy.render (menu-item.mjs:204:25)
at Or (runtime-core.esm-bundler.js:876:16)
at Os.A [as fn] (runtime-core.esm-bundler.js:5995:46)
at Os.run (reactivity.esm-bundler.js:176:19)
at D.h.update (runtime-core.esm-bundler.js:6126:16)
at D (runtime-core.esm-bundler.js:6136:12)
at oe (runtime-core.esm-bundler.js:5904:7)
at G (runtime-core.esm-bundler.js:5858:9)
at x (runtime-core.esm-bundler.js:5326:11)
at k (runtime-core.esm-bundler.js:5574:7)
具体文档如下
https://nuxt.com/docs/api/composables/use-nuxt-app#runwithcontext
期望结果
No response
实际结果
No response
框架版本
3.4
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
No response
The text was updated successfully, but these errors were encountered: