-
Notifications
You must be signed in to change notification settings - Fork 960
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
Vue/Nuxt: props.builderBlock.id not being passed to component using the catch-all setup #3765
Comments
hello @responsemktg, the examples unfortunately are not maintained currently. You can follow our snippets directory, which contains up-to-date examples connected to our docs with the latest SDK releases. To resolve this issue, you will need to provide builder/packages/sdks/snippets/react/src/components/CustomTabs.tsx Lines 44 to 48 in 25f00ac
Thanks for calling out on the docs, we are looking into resolving it sooner. Till then if you have any questions, please let us know. |
@sidmohanty11 Thank you for the quick reply! Is there a preferred method of submitting future examples of the vue / nuxt documentation that are out of sync with the snippets? Id love to help provide other examples of incomplete/inconsistent documentation. |
@responsemktg The best way for you to share any issues with documentation is to use the This will make sure that the feedback goes directly to our documentation team.
I understand your sentiment! We have recently built a new documentation infrastructure that allows our team to create, maintain and test code snippets within our documentation to ensure they are updated with our latest SDK code and are constantly in sync. We are still migrating our old documentation to this new infrastructure, and this Vue code block is on the legacy system. We appreciate your patience and know that once this migration is complete there will be no such discrepancies in our documentation moving forward. |
Im still having issues getting this set up in a Vue context. I have added:
And then in the props definition:
And thats great! I can now access the builderBlock to get the id. Im still stuck on:
|
hey @responsemktg, the docs should now be updated. Please give it a shot and let us know if they are still unclear. To answer your questions:
this happens when the
|
@sidmohanty11 A couple of notes:
child-components.mov |
@uttej-vsk @samijaber @sidmohanty11 Wondering if you managed to take a look at the example video above? Right now the experience is broken in Vue/Nuxt, and we can't move forward to converting out design library to builder.io, which is a shame. |
@responsemktg apologies for the late reply. Tried this out and you're right it doesn't work. I noticed that we also need to pass a ...
inputs: [
{
name: "content",
type: "uiBlocks",
defaultValue: [], // to send content as a prop
},
],
... as Also, thanks for the feedback, we have created a Jira ticket to track this issue, I will soon let you know if we have any updates on this. |
Describe the bug
When trying to add child blocks in custom components, the example code for vue / Nuxt does not work
To Reproduce
Steps to reproduce the behavior:
ERROR [nuxt] [request error] [unhandled] [500] Cannot read properties of undefined (reading 'id')
Expected behavior
Expect the nested block to show up in the builder interface, and localhost
In general, I am finding the Nuxt documentation to be a little difficult to follow (for example, lots of references to
import { Builder } from '@builder.io/sdk-vue'
, but that results in an error of Builder export not found)When i dump out the props into the component - I see the title field, and nothing else.
Is this a limitation of the catch-all approach?
The text was updated successfully, but these errors were encountered: