Nuxt

N

Nuxt

Nuxt Community Chat Server

Join

Nuxt Content not loading with NuxtLink

I am getting started with Nuxt content and have configured and index and slug page to display my blog directory. The problem I am running into is when clicking on the NuxtLink generated on the index page(ex /blog/hello), it goes to the appropriate link but doesn't display anything. If I remove the v-if from the slug, I get the following error via console
Invalid prop: type check failed for prop "value". Expected Object, got Null
Invalid prop: type check failed for prop "value". Expected Object, got Null
If I access the link directly the page renders as expected. ...

Nitro defineTask in a module

How to register a task in a nuxt module? Within the project, it registered automatically, but in a module.ts, I can set the cron module, but probably I should call something to actually register it. I see int he console: WARN Scheduled task notifications:process-queue is not defined!...

Pass Remote Layer Assets to App

I have a Layer as an npm package with assets like icons, fonts and css. Is it possible to pass those assets to the app?...

Cloudflare Worker blocked by Bunny CDN due to missing Referer / How to set Referer header in fetch

hello all ! I’m using Bunny CDN with referrer-based protection enabled to serve images. I’m generating Open Graph (OG) images with https://nuxt.com/modules/og-image using the Cloudflare Worker, which fetches those protected images. ...

Looking for good examples of multi tenant setup in Nuxt

Examples I'm looking for: my-saas.com/client1/app my-saas.com/client2/app ... ...

Pages not working with app.vue

The issue is this: When i have a /app/app.vue - with even the most minimal template possible: ``` <template> <NuxtPage />...
No description

Nuxt 4 + MDC

nuxt mdc expects this ```ts components: { global: true, path: './components/prose'...

mockNuxtImport() is a macro and it did not get transpiled

Writing an example test ```import { describe, expect, it, vi } from 'vitest' import { mockNuxtImport } from '@nuxt/test-utils/runtime' ...

rehype-external-links

"How do I set rel in rehype-external-links?"

Nuxt UI Pro Header page shows empty examples

Right now on the Nuxt UI Pro docs, the header page shows empty examples. https://ui.nuxt.com/components/header...
No description

@nuxt/content without rel

When using the @nuxt/content module, the <a> tags in the pages generated from Markdown always have a rel attribute. I don't want them to have this rel attribute. Please tell me how to configure this in nuxt.config.ts.

module bump to nuxt 4

As a module author when to bump the module's dependency to nuxt 4? What if I want to support both Nuxt 3 and 4 apps?

@nuxtjs/color-mode system css not using 'dark' class

In @nuxtjs/color-mode, for some reaso it's using "system-mode" as the class instead of "dark-mode" when that is what the system is set to (actually I want just "dark" so I set classSuffix to '' to fix that)

Nuxt OG image error 500

Hello, I’m trying to use the @nuxt/og-image module on a production server running with Cloudflare Pages, using workers. I'm in SSR. Everything works perfectly in my local development environment. However, when I deploy to Cloudflare Workers, it fails with a 500 error when accessing the generated image at /__og-image__/image/og.png....

Use Custom prose component with nuxt/mdc

Hi, I need help with something: I'm trying to use Nuxt MDC without Nuxt Content (the goal is to reduce the build size, and I don’t need the other features of Nuxt Content since my content comes from a headless CMS, not markdown files). So far, it's working as expected....

No Source Code found for Nuxt Dev Tools.

I have migrated to Nuxt 4 and am using the nuxt seo tool to check the links but I get this message on the Dev Tool "No Source Code found" I have added the srcDir path as the new app dir in the Nuxt Config but I am still getting this message. srcDir: "app/",...
No description

Nuxt layers overwrite not working

I have a project with a submodule where a nuxt project is in. In the root nuxt config i'm extending this submodule. When I create a component with the same name in the same folder like in the submodule it does not get overwritten...

Auto import types in v4

How does one auto import types from a custom types directory in v4? I accessed an older project which had v3, now im upgrading to v4 but its not importing my types anymore. i changed my tsconfig.json to this https://nuxt.com/docs/4.x/guide/directory-structure/tsconfig...
No description

Problem with show pages in menu

Friends, I have a problem loading views in my menu and front end. When I click on the menu it doesn't show me the views and when I check the terminal I have some problems that I can't understand why... I admit that it's been a long time since I started a new project with NuxtJS, maybe I missed something or I'm overlooking something... It shows me the error I share in the attached image. ```...
No description

Import Error in Server Folder

Hi - I have a nuxt3 project that I'm migrating. I have an import in the server folder that seems to want use the appDir as root when resolving a path.
[nitro 9:30:10 PM] ERROR Error: Could not load /home/king/dev/project/app//server/lib/Transcode'
[nitro 9:30:10 PM] ERROR Error: Could not load /home/king/dev/project/app//server/lib/Transcode'
My import is ```import useTranscoder from '~~/server/lib/Transcode'...