94 questions
0
votes
1
answer
40
views
Nuxt 4 + nuxt-seo: `defineOgImageComponent` throws "client-only context" error
I’m trying to use nuxt-og-image via defineOgImageComponent() on my homepage.
Even with SSR enabled and calling it at the top level of the page’s <script setup lang="ts">, I get:
500 ...
0
votes
0
answers
38
views
Nuxt content v3 with Nuxt v4 shows "content not found" on direct page refresh/navigation in production
Operating system : macos
@nuxt/content: ^3.6.3
nuxt ^4.0.3
Node 24
In a Nuxt 4 project utilizing @nuxt/content, I am encountering an issue where content-rendered pages display "content not found&...
0
votes
0
answers
43
views
nuxt build error: appendHeader is not defined
I have the following problem: there is no issue when I run npm run dev everything works fine. However, when I run npm run build I get the following error:
Console:
[plugin @tailwindcss/vite:generate:...
0
votes
0
answers
52
views
How to Use Public Assets from the Root of a Monorepo in Nuxt 3 with Nuxt Content instead of projects public/
I have a monorep based set-up where all shared static assets live in <repo>/public/img. I’d like every Nuxt app under <repo>/apps/… to reference those images directly. I’d like all of my ...
1
vote
1
answer
457
views
Tailwind Typography Not Applying prose styles to Nuxt Content v3 (was working in Nuxt content v2)
I am migrating my Nuxt content project to use @nuxt/content v3 from Nuxt content v2. I'm also using Tailwind Typography installed correctly. Despite this, my markdown content rendered with <...
1
vote
1
answer
81
views
plugin:nuxt:imports-transform unimport failed to find "queryContent" imported from "#imports"
H3Error: [vite-node] [plugin:nuxt:imports-transform] [VITE_ERROR] /node_modules/nuxt-toc/dist/runtime/components/CustomQuery.vue
import { hash } from 'ohash' import { toRefs,
defineComponent, h, ...
1
vote
2
answers
423
views
How to correctly configure tailwindcss with nuxt3 and apply styles to content?
I have installed TailwindCSS v4 in a Nuxt.js project following this:
https://tailwindcss.com/docs/installation/framework-guides/nuxt
And added nuxt-content which works fine. But I'm struggling to ...
0
votes
0
answers
34
views
Sitemap doesn't work correctly with Nuxt2 and İ18n
I have a website and I use Nuxt2 and i18n. When I create a sitemap, the link structure appears as someurl.com/en/en or someurl.com/en/hakkimizda (this is a Turkish link). Also, in my own sitemap ...
1
vote
0
answers
310
views
how to import nuxt/content correctly?
I try to display a markdown file from content to some page and no matter what I do I get this error:
[plugin:vite:import-analysis] Failed to resolve import "#content" from
"pages/info....
0
votes
1
answer
170
views
Refetching content with Nuxt content using $fetch or useFetch with watch
I use Nuxt with Nuxt Content (https://content.nuxt.com/). I have a component that needs to refetch some content while watching content ids.
I don't know how I can use $fetch or useFetch together with ...
0
votes
1
answer
143
views
How to handle markdown content in Nuxt3 using nuxt/content
I'm trying to display some images and title from my markdown content in my nuxt3 project.
---
title: A selection of our customers
images:
- /images/brands/brand-1.png
- /images/brands/brand-2....
0
votes
0
answers
63
views
Nuxt sitemap does not include the hostname for the video poster but for normal images everything works perfectly
I have a Nuxt 3-based web application built using the Nuxt content. Within the sitemap generation, how to make the Nuxt sitemap and add the hostname for the video poster?
Currently, the hostname is ...
0
votes
0
answers
121
views
How to use nested named slots in Vue.js?
It's been a while since I posted a question here. People of StackOverflow, I need your help.
layouts/page.vue
<template>
<main class="flex py-10 w-full">
<AppNavigation /...
1
vote
0
answers
68
views
How do I get the page to render via the slug set as a frontmatter property in Nuxt Content?
In my blog/index.vue, I have the following:
<script setup>
const contentQuery = await queryContent('blog')
.where({ draft: false })
.sort({ date: 1 })
.find()
</script>
<template&...
0
votes
0
answers
187
views
Error from nuxt-schema-org when I use nuxt 3
I installed the nuxt-schema-org library and used it in nuxt 3 version 3.11.2. However, when I tried yarn dev, this error occurred. Is it because it did not automatically create the necessary files and ...