Nuxt

N

Nuxt

Nuxt Community Chat Server

Join

Nuxt Content: Use custom subdomain in sitemap

Hello, I'm using the nuxt/content and nuxt/sitemap modules. I've got a list of markdown files under the directory "content/publications" which contains meta data for some PDF files. The PDF files are hosted under a separate subdomain (media.mydomain.com). The metadata for the publications are serverd under mydomain.com/publications. ...

Why my Nuxt-Icon color cannot able to change color?

I have tried every method such as add code "fill",add file"app.config.ts",or add "fill= currentcolor" in svg,but the icon color no change in black . Can anyone tell me what causes this? The version of Nuxt-Icon is v1.15.0 ....
Solution:
Hi @cocoa-c. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

Does useHead not exist in Nuxt 4?

If it does, what is the correct syntax for using it in the app page, I just updated Nuxt 3 to Nuxt 4 and am seeing a TS error with the useHead. What am I doing wrong?

Global types failing

I'm getting this error Write global types file failed. Please ensure that "node_modules" exists and "vue" is a direct dependency, or set "vueCompilerOptions.globalTypesPath" in "tsconfig.json" manually. I have tried suggestions of running npm install vue which didn't help. I also set the vueCompilerOptions.globalTypesPath in my tsconfig.json and that didn't seem to help. I'm new so sorry for my newbish question, what am I doing wrong....

how can i start a v3 nuxt

how can i start a v3 nuxt

Nuxt UI Pro free

Hey there! Is there a way to start using Nuxt UI Pro in production for free? Or waiting for septembre is required ?...

Nuxt random crashing

how can i stop nuxt doing this ERROR [unhandledRejection] read ECONNRESET 20:11:41
at TCP.onStreamRead (node:internal/stream_base_commons:216:20)...

Readonly reactive variables in pinia store

I am trying to mark a reactive variable in my pinia store as readonly() so it's only changed via setter but doing that yields a warning as [Vue warn] Set operation on key "value" failed: target is readonly. on initial page load. How can I solve this?...

Unable to view the pages/index.vue

I am new to nuxt. I just created a new project but I am unable to view the home page even after adding <NuxtPage /> in app.vue...
No description

Zod auto imports

Hi! I am using zod4 and nuxt. I want to do something like this: ```ts import * as z from 'zod' export default defineNuxtPlugin(() => {...

Nuxt content markdown validation

Is there a way to validate nuxt content .md files based on the collection schema ? So far, ive added categories: z.array(z.enum(VALID_CATEGORIES)).optional(), to schema of my collection, but when writing the content .md file, i can write whatever i want, i would get no warnings about it and it would still work correctly, even tho im guessing it should not....

PrimeVue components no longer auto-imported with Nuxt 4

Newbie here. First project. 1 week old. Just upgrading to Nuxt 4. In app/components/nav/leftmenu.vue I have a simple template using the <Menu> component from PrimeVue. It used to work with Nuxt 3: ```...

Nuxt V4 npm run preview error can't find module "E:\WebDev\My-App\.output\.output\"

Hello, i upgraded my project to nuxt v4 but update the update this error occur. the console log show like this: ``` ℹ Loading .env. This will not be loaded when running the server in production.
ℹ Starting preview command: node .output/server/index.mjs
node:internal/modules/cjs/loader:1404...

Migrating from nuxt V3 to V4: DOM doesnt update after HMR

Hello, i upgraded my nuxt 3 project to nuxt 4 and after this, my dom doesnt refresh after HMR. I get console feedback in debug telling me that hmr happened but nothing.

Error Handling: How to Display Errors on the Current Page Instead of Fullscreen

Hello, I need to control the fullscreen error handling in my Nuxt application. I would like to avoid switching to a fullscreen error page in case of fatal errors. Instead, I prefer to show a message or a popup on the current page. Thank you!

HyperSwitch.io

Hello Nuxters ! Anyone used or heard about Hyperswitch.io ? need Help about a module i am creating

Nuxt pro Portfolio issue - About

Hi all, I've been playing around with the Nuxt Pro Portfolio template locally, and noticed with a fresh pull when I navigate to the About page, the about content is not pulled in from about.yml, but if I refresh the page the content field is loaded/displayed. Has anyone else experienced this, and how can i ensure the content field is field is passed in on first load. Thanks in advance 🙏...

Anyone had any success deploying Nuxt to Firebase App Hosting?

I’m getting this error: An error occurred in your rollout generic::failed_precondition: Revision 'appname-build-2025-07-16-007' is not ready and cannot serve traffic. The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable within the allocated timeout. This can happen when the container port is misconfigured or if the timeout is too short. The health check timeout can be extended. Logs for this revision might contain more information. Logs URL:...

How to automatically import custom shared directories

I created a custom directory in shared, and I want it to be imported automatically. According to the documentation, I added the directory to importes.dirs and nitro.imports.dirs, but it didn't import correctly. I would like to ask if there is a problem with my method, as follows: custom directory: shared/schemas ```...

Nitro undefined preset/undefined emulation error

Hey A side project that I'm working on has stopped working after upgrading Nitro to v2.12. I'm getting this error when I try to start the dev server: ``` ERROR Cannot start nuxt: Nitro entry is missing! Is "undefined" preset correct?
at resolvePathOptions (node_modules/nitropack/dist/core/index.mjs:435:11)...