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

Problem during testing (Invalid vnode type) #48

Open
alabastor95 opened this issue Apr 3, 2024 · 1 comment
Open

Problem during testing (Invalid vnode type) #48

alabastor95 opened this issue Apr 3, 2024 · 1 comment

Comments

@alabastor95
Copy link

Hi!

Important: the problem is only present when testing!
I am using trying to test this component with vitest. For this, I am mounting it with @vue/test-utils, which throws error.

Example component: <QRCodeVue3 value="https://example.com"></QRCodeVue3>
Problem:

[Vue warn]: Invalid vnode type when creating vnode: undefined. 
  at <ErrorPopup ref="VTU_COMPONENT" > 
  at <VTUROOT>

The component is not created, when console-logging the html part of the wrapper I receive the following in place of it: <!---->
I can successfully mount and test other components.

@weimengdexiaolaohu-8
Copy link

20241203-192917
同样的问题

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