Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Menu] 在 nuxt3 中因为 menu 使用了 getCurrentInstance 极端情况会导致出现报错 #3864

Open
SeigeC opened this issue Jan 18, 2024 · 2 comments
Assignees
Labels
nuxt3 a nuxt3 issue vue 3.4

Comments

@SeigeC
Copy link

SeigeC commented Jan 18, 2024

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

Copy link
Contributor

👋 @SeigeC,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@SeigeC SeigeC changed the title [组件名称] 描述问题的标题 [Menu] 在 nuxt3 中因为 menu 使用了 getCurrentInstance 极端情况会导致出现报错 Jan 18, 2024
Copy link
Contributor

♥️ 有劳 @LeeJim @amadeus711 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @SeigeC

@uyarn uyarn added the nuxt3 a nuxt3 issue label Feb 25, 2024
@uyarn uyarn added the vue 3.4 label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nuxt3 a nuxt3 issue vue 3.4
Projects
None yet
Development

No branches or pull requests

3 participants