Open acdcjunior opened 5 years ago
This is still relevant, and actually quite annoying. But, as mentioned in the SO question, in my case it seem to be related to scoped styles in functional component. When there is no scoped style, the error is gone. So for know, move the scoped styling to some global place is a valid workaround for me.
@acdcjunior Your reproducable example is gone btw.
@bobvandevijver Apparently, there's a bug in codesandbox. The link is https://codesandbox.io/s/vue-template-xsy58 . It only works when I'm logged in.
Version
5.1.1
Browser and OS info
Chrome 76 / Windows 10
Steps to reproduce
<Anonymous Component>
on the component tree and the error will appear in the console:Full/complete steps:
<input />
child<Anonymous Component> (functional)
" on vue-devtool's component treeError:
What is expected?
no errors
What is actually happening?
console logs error
originally reported as a stackoverflow.com question (https://stackoverflow.com/q/57952313/1850609) by @Sanjay
The error happens because the functional components' children have no
vnode.fnOptions
. This occurrs even when the child is a Vue component (not just when they are<input />
s, such as in the demo).The problem is many functions expect the
options
to not be undefined.getComponentName
is just the first; more show up as you patch)...vnode.fnOptions
being not filled (when it should have been) for those children, or (2) the children of the functional components should not appear in the component tree, which would make this whole thing a non issue.