Skip to main content
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 ...
BATMAN_2008's user avatar
  • 3,632
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&...
BATMAN_2008's user avatar
  • 3,632
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:...
Peter Plevko's user avatar
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 ...
BATMAN_2008's user avatar
  • 3,632
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 <...
BATMAN_2008's user avatar
  • 3,632
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, ...
Mike Frost's user avatar
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 ...
thiebo's user avatar
  • 1,467
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 ...
İrem Turgut's user avatar
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....
KSPR's user avatar
  • 2,427
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 ...
Merc's user avatar
  • 4,652
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....
Prongs's user avatar
  • 23
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 ...
BATMAN_2008's user avatar
  • 3,632
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 /...
Oyedeji's user avatar
  • 112
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&...
Peoray's user avatar
  • 1,935
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 ...
Bin Chảnh Kún's user avatar

15 30 50 per page
1
2 3 4 5
7