Closed StirStudios closed 12 months ago
What's you Drupal setup, are you using lupus decoupled Drupal? Do you use markup or json rendering?
Latest version of nuxtjs-drupal-ce is 2.0.0-beta2. It would be best to use that.
Also make sure to use latest code from the default components (https://github.com/drunomics/nuxtjs-drupal-ce/tree/2.x/playground) in your project. We also have a scaffolding command in place for new projects: 3rd point in Setup instructions - https://github.com/drunomics/nuxtjs-drupal-ce#setup, which copies the default components from the installed nuxtjs-drupal-ce package playground to your Nuxt 3 project.
Thanks for all the guidance. We are using json rendering and we do have all Lupus Decoupled modules installed (latest dev version). @TurtlBbx thanks for the further guidance.
It looks like this was the issue:
components: [{ path: '~/components', pathPrefix: false }]
Once I remove this it looks like all works well. We need to use this for our current project how can I make this work as needed with Lupus?
We are super excited and this will be a huge plus for the Drupal/Nuxt community.
@StirStudios Yes, the components rendered with Vue Render Function API, which we use for renderCustomElements
helper which is used in e.g. <component :is="renderCustomElements(page.content)" />
must be globally registered to work (can be resolved).
I'll close this issue. It seems you've resolved the issue. If you have any further questions you can also write in Drupal Slack, lupus-decoupled channel.
I have setup a dev test to try out the latest version.
Nuxt Specs:
Drupal Specs:
Drupal: 9.5.9
Everything is set up locally. When I try to navigate to a node I get the following message:
Within the [...slug] if I render
page.content
I see the data. So it seems like there is an issue with the component import from the module?I am also using the playground setup.
Any help or insight would be great please.