Skip to content

Troubleshoot common issues

Quick answers to the problems reported most often by real users, from the missing Vue template box to site-wide JSON:API 403 failures.

This page covers the issues that account for most of the confusion reported by real users over the life of this project. Each entry is a quick answer, with a link wherever a fuller explanation exists.

4 of 21 issues

Pages and routing

"Missing Vue template" box Expected in development: nothing themes that component yet. Expand it to create the file.

You're not seeing an error, this is expected. DruxtBlock and DruxtField both show this box when nothing themes them yet (other modules don't have it), and it only appears in development mode (nuxt dev). Production builds show nothing there instead.

Expand the box: it lists every valid wrapper name for that component and has a Create button that scaffolds the file for you. See Theme Druxt components for the full explanation and how the wrapper-naming system works.

Copy link
The site only shows "Welcome to Nuxt" Delete pages/index.vue so Drupal serves the homepage.

The Nuxt scaffolder creates a default pages/index.vue, and an explicit page always wins over Druxt's wildcard route. Delete pages/index.vue and the homepage resolves through Drupal like every other path. See Decoupled routing.

Copy link
A page shows "not found", or the wrong content Ask Decoupled Router what the path resolves to.

Druxt asks the Decoupled Router module which entity or View each path belongs to, at its /router/translate-path endpoint. Request the same endpoint from the machine that runs your Nuxt site. Replace https://cms.example.com with your baseUrl, and /about with the path that fails, language prefix included (such as /es/about):

curl 'https://cms.example.com/router/translate-path?path=/about'
  • It names the right entity or view. Drupal is fine, so look at the Nuxt side: a file in pages/ that wins over the wildcard route, as in the "Welcome to Nuxt" entry, or a server cache that hasn't cleared yet, as in Edited content stays stale.
  • It names the wrong entity. The alias is on more than one page, or it belongs to another language. Check them under Drupal → Configuration → Search and metadata → URL aliases.
  • It answers 404, "Unable to resolve path". No page in Drupal has that path. Check the URL alias on the page's edit form, and the language prefix. If it started after a composer update, see Routes and Views paths stop resolving.
  • It answers 403, "Access denied for entity". Drupal found the page, but curl doesn't send a login, so Drupal answers as it would an anonymous visitor. Check that the page is published. If only signed-in users should see it, the 403 is expected.
Copy link
The main menu or blocks are missing, or the layout looks wrong Name your site's theme in druxt.site.theme.

With no druxt.site.theme, DruxtSite uses the first available theme in alphabetical order, which can be an admin theme such as Claro. Name your site's theme in nuxt.config.js:

export default {
  druxt: {
    site: { theme: 'olivero' },
  },
}
Copy link

Still stuck?