nuxt-ui-pro / docs

A documentation template made with Nuxt UI Pro.
https://docs-template.nuxt.dev
134 stars 38 forks source link

Can not read content data with queryContent('/') #32

Closed mlapeyre3 closed 8 months ago

mlapeyre3 commented 8 months ago

Hello everyone,

I try to use the doc template as a boilerplate for my next Nuxt 3 project using npx nuxi init -t github:nuxt-ui-pro/docs Once the whole project is running in dev, I have an error with the following workflow:

Then the page is freeze and the error appears in console:

image

This does not happen when I navigate between http://localhost:3000/getting-started/installation and http://localhost:3000/getting-started/usage for example.

Thanks !!

mlapeyre3 commented 8 months ago

✅ Removing <NuxtLayout> from

<NuxtLayout>
  <NuxtPage />
</NuxtLayout>

(or defining a default layout in the /layout folder) solved the issue.