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

使用ApiSelect 报TypeError: Right-hand side of 'instanceof' is not callable #1175

Closed
huoxiangdong opened this issue Sep 9, 2021 · 3 comments

Comments

@huoxiangdong
Copy link

huoxiangdong commented Sep 9, 2021

image
使用ApiSelect组件,选择值后,报以下错误
image
image

发现ApiSelect组件修改props.value类型, 就不报错了
image

@xqfz
Copy link

xqfz commented Sep 11, 2021

我在测试可编辑行(/#/comp/table/editRowTable)时也发现这个问题,跟踪发现开发模式下校验value的type出错(assertType中valid = value instanceof type出错),production下不做这个检查所以不出错。(value值是字符串,但与propTypes.object比较时出错)

@im-qrh
Copy link

im-qrh commented Sep 11, 2021

我也碰到了,拉了 vue-vben-admin 代码未做任何修改,使用 yarn 编译,然后 yarn serve 运行,在 系统管理-账号管理 页面,点击 编辑用户资料 按钮,发现这个问题。

@hirelev
Copy link

hirelev commented Dec 29, 2021

vue-types版本的问题 4.0.2版本是OK的

@github-actions github-actions bot locked and limited conversation to collaborators Sep 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants