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

打包工具热更新引起的 LeaferTypeCreator 重新注册问题 #6

Closed
Alessandro-Pang opened this issue Jul 6, 2023 · 2 comments

Comments

@Alessandro-Pang
Copy link

现代打包工具(如: webpack / vite )检测到代码更新后会重新编译,此时 leafer 的类型注册机制就会产生误判:

注册代码:

image

注册机源码:

image

报错信息如下:
image

Leafer UI版本: 1.0.0-beta.4

可复现地址:https://codesandbox.io/p/sandbox/funny-ully-t3r8pf

复现步骤:代码中随便编辑点什么,保存后页面重新编译,控制台此时会报出异常

@leaferjs
Copy link
Owner

leaferjs commented Jul 6, 2023

谢谢反馈,今天会再发布一个版本,到时一起更新。

@leaferjs
Copy link
Owner

@Alessandro-Pang 问题已修复,需要更新下版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants