-
Notifications
You must be signed in to change notification settings - Fork 13
Render custom vue 3 components #36
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
@danielmalmros thank you for the detailed issue report! I can reproduce your issue. I just can't seem to figure out what's causing it. It's as if Vue has no idea that vue-router has it's components registered. Have you done any further debugging in the meantime? It would be amazing if you could pinpoint the issue (and even maybe fix it with a PR 👀) |
@tolgap sorry for late response. If I can find the time I'll try dig more into it. |
If you are trying to sort out the router-link here is the only way we've managed to sort it out... A bit hacky but it works...
|
I've been looking into this during my holidays. I think I've figured out what is going wrong. Because of the recent changes to Vue 3, where the So actually, there are no changes required in this library. You just need to make sure to actually use the component definition, instead of just it's name. |
@danielmalmros could you try out the solution in that fiddle, and let me know if it worked out for you? Then we can close this issue👍. |
Hi,
Thanks for maintaining this project :)
I'm trying to use "[email protected]" in our Vue 3 (Single Page Application) to render some custom components based on
BLOCKS.EMBEDDED_ENTRY
.We have several different embedded entry types in Contentful that all uses different layout - so we need to render different custom components. But right now it seems like thats not possible?
Right now, I can't even render a
router-link
.When looking into the DOM, I see
<router-link to="/path">Read more</router-link>
- so it seems like it's not rendering correctly? I guess I would expect it to render therouter-link
or any other custom components.Here is an example of what we are trying to do:
The text was updated successfully, but these errors were encountered: