We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9826fa commit b3af5dbCopy full SHA for b3af5db
packages/runtime-core/src/components/Teleport.ts
@@ -41,7 +41,10 @@ const resolveTarget = <T = RendererElement>(
41
if (!target) {
42
__DEV__ &&
43
warn(
44
- `Failed to locate Teleport target with selector "${targetSelector}".`
+ `Failed to locate Teleport target with selector "${targetSelector}". ` +
45
+ `Note the target element must exist before the component is mounted - ` +
46
+ `i.e. the target cannot be rendered by the component itself, and ` +
47
+ `ideally should be outside of the entire Vue component tree.`
48
)
49
}
50
return target as any
0 commit comments