-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Web Components with Functional child components throws "Cannot read property '$options' of undefined" #4097
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
Comments
Note: This works fine if I change the component to non-functional, or if I change the build away from web components to the traditional cli build |
🤔It's due to functional components' context not having a |
@yyx990803 @sodatea, we are still waiting for accepting PR from @zrh122 |
We can't use functional components at web component target |
I'll take a look later today or tomorrow. |
@sodatea did you look PR? |
Yeah I was testing some edge cases locally. |
Version
3.8.0
Reproduction link
https://github.com/wpatter6/vue-wc-functional-bug
Environment info
Steps to reproduce
What is expected?
Web component should render properly with no errors in browser console
What is actually happening?
Component does not render, error message says
Here is the stack trace of the error in the console:
If I make the child component non-functional it will work properly. Was really hoping to be able to use functional components to help improve performance of my web components.
Thanks in advance for any help!
The text was updated successfully, but these errors were encountered: