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

使用了 san-store 之后再使用 san-devtools 报错 #91

Open
tearill opened this issue Oct 30, 2024 · 0 comments
Open

使用了 san-store 之后再使用 san-devtools 报错 #91

tearill opened this issue Oct 30, 2024 · 0 comments

Comments

@tearill
Copy link
Contributor

tearill commented Oct 30, 2024

问题描述:想使用 san-devtools 真机调试时发现,如果项目中使用了 san-store 之后,再引入 san-devtools 的 ws-backend.js 文件会报错导致页面渲染失败

报错截图:
image

问题排查:经排查发现,是 san-store 中的 default-store 中的 emitDevtool 方法导致,在 san-devtools 的事件处理中(详见截图)会解构参数中的 store 对象,但是该调用没有传递 store 参数,导致 store 参数为 undefined,从而导致后续报错
image

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

1 participant