global component Failed to resolve component: hello-word
Vue version
3.2.39
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-jncq5p?file=src/test-com/src/index.vue
Steps to reproduce
- open link
- click "append helloword com to body" button
What is expected?
append
<div>hello word2</div>
<hello-word>测试</hello-word>
to body
What is actually happening?
append
<div>hello word2</div>
to body
System Info
Failed to resolve component: hello-word
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
Any additional comments?
No response
Manually calling render
creates a tree that doesn't belong to the current app instance, so it can't resolve components registered under the app's scope.
Manually calling
render
creates a tree that doesn't belong to the current app instance, so it can't resolve components registered under the app's scope.
Then how should I deal with this problem