-
Notifications
You must be signed in to change notification settings - Fork 494
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
[Form] 组件在 Nuxt3 build 时报错:The symbol "isError" has already been declared #3458
Comments
👋 @miswanting,感谢给 TDesign 提出了 issue。 |
我也复现了这个问题,简直没办法用啊, 补充说明 |
直接这样build就报错,是t-form的锅 |
|
更新:v1.7.1依然存在这个问题。 存在两类Bug,其中一个可用ClientOnly组件绕过,但另一个无法用该方法绕过。【相关信息已在原文中更新,并附上了精简版重现链接】 Bug 1:/pages/bug-1.vue<template>
<!-- 使用 ClientOnly **可绕过**该问题 -->
<!-- <ClientOnly> -->
<TForm></TForm>
<!-- </ClientOnly> -->
</template> Bug 2:/pages/bug-2.vue<template>
<TLayout>
<!-- 使用 ClientOnly **不可绕过**该Bug -->
<ClientOnly>
<TForm></TForm>
</ClientOnly>
</TLayout>
</template> |
|
1 similar comment
|
问题已修复 下个版本带上 thanks @richardji202 🌹 |
fixed 1.9.0 |
tdesign-vue-next 版本
1.7.1
重现链接
https://github.com/miswanting/nuxt3-build-tdesign-iserror-already-been-declared-bug
更加精准的重现:https://codesandbox.io/p/devbox/nuxt3-build-tdesign-vue-next-iserror-already-been-declared-bug-f8ql3d
重现步骤
期望结果
编译无错误
实际结果
编译中断,报错:
框架版本
Nuxt(3.8.1)
浏览器版本
No response
系统版本
No response
Node版本
20.5.1
补充说明
dev
模式时无报错;pages/
目录中的文件会出现该报错,app.vue
中不会出现这个问题;Form
组件会报错;【该Bug可用ClientOnly
绕过】Layout
组件中使用Form
组件会报错;【该Bug不可用ClientOnly
绕过】tdsign-vue-next
几乎无法在Nuxt3框架中完成构建和发布。The text was updated successfully, but these errors were encountered: