Skip to content
Discussion options

You must be logged in to vote

Regarding your example https://stackblitz.com/edit/vitejs-vite-kc1gr9?file=src%2Fblueprint%2Fcomponents%2FCollapse.ts%3AL54, without knowing how Collapse is being called, it's not possible to say in details how did the error occur. However, by learning from the error message, I can tell the error is caused by trying to compose a DOM node that has already been connected to the document tree as the child node of something you want to build. This is an undefined behavior in VanJS, and an error with that message will be thrown when van-{VERSION}.debug.js is being used. You can refer to this section https://vanjs.org/tutorial#dom-nodes-already-in-the-document-tree-can-t-be-used-as-children for…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@iongion
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Tao-VanJS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants