Nuxt

N

Nuxt

Nuxt Community Chat Server

Join

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)...

How to uri encode properly navigateTo param and how to redirect user

I have pages like below: pages/[id]/index.vue pages/[id]/[name].vue ...

Nuxt 3 Content: Filter by Subdirectory Not Working with queryCollection().path()

Hey everyone! šŸ‘‹ I'm trying to filter content by subdirectory using queryCollection() in Nuxt 3, but it's not working as expected. šŸ“ My nuxt content folder...

NuxtErrorBoundary and broken link outside

Can anyone give me some good advice? I intentionally made a /pages/x.vue page with an error. I wrapped the error code via NuxtErrorBoundary and added a button for clearError => this all works fine. ...

Nuxt 4 module migration guide

Hello. Is there any module migration guide ? Docs page don't have anything about Nuxt 4 yet.

Nuxt DevTools renders site inside of DevTools

Not entirely sure how this is happening, but my site becomes rendered in the Nuxt DevTools when I open it... ------------------------------ - Operating System: Linux - Node Version: v22.15.0...
No description

Preview mode fails to run

When I want to run the build in preview mode:
npx nuxi preview --dotenv .env
npx nuxi preview --dotenv .env
...

Did something change with how workers are imported/built?

I have a module that relies on a worker, and imports it like: import worker from './worker?worker' Now, when I try to build I get an error: [vite:worker] Cannot add property 0, object is not extensible...

Auto imports and `<component :is="" />`

I'm struggling with a dynamic part of our app, where we load components based on what button a user clicks. Pretty straightforward, but we use constants with types a lot to make things easy, but I can't figure out how to do it with dynamic components. Pseudo-code: ```ts // In constants/calendars.ts...

X-Frame-Options

Did something change in the last couple of releases considering the x-frame-options header? How can I set the x-frame-options for certain routes?

nuxt api shield, rate limit bug

my code, which I expect to only take one fetch event every 10 seconds doesn't work as expected. instead it takes all the fetch events for a while, is it a time interval?. doesn't matter how many, I counted 15, before it blocks all. ```export const config = { apiShield: { rateLimiter: { enabled: true,...

useCookie() BUG. Expired cookie still reads previous values instead of default, cookie in memory?

Seems I've discovered a bug. Expired cookies, where maxAge has passed still reads previously saved cookie value. ```function onDownload(url: string): void { console.log("Downloading video from: " + url); const downloads = useCookie<{...

useFetch's tranform equivalent for $fetch

What useFetch's tranform equivalent for $fetch?

Nuxt keep infinitely sending request when using useFetch

Hello, I am wondering is it a bug or my code just wrong? Nuxt 3.17, node js v24.1.0 Server gets request as expected. Here is composable...

Warning after upgrading to Nuxt 3.17.x: useAsyncData must return a value

Hey everyone! šŸ‘‹ I’m using Nuxt 3.17.5 together with @nuxt/content 3.6.3. After upgrading Nuxt to 3.17.6 (or 3.17.7), I started seeing this warning in the console: ``` [nuxt] [warn] [useAsyncData] must return a value (it should not be undefined or null) or the request may be duplicated on the client side....

Single root for components in vue3 ?

Hello Kapa I'm never sure if in nuxt 3 / vue 3 it's still important to have a single root in a component is this ok ? ...

custom colors NuxtUI & useColorMode

Can I use custom primary colors for themes? The idea is that, for example, in light mode the primary color should be blue and in dark mode the primary color should be yellow....

dynamic nuxt layers

May I know if it can be dynamic like it will render the second layer's app.vue/index.vue based on a state value?

API doesnt work

server/api/auth/register.post.ts ``` import { User } from "~/models/user.model"; import rateLimit from "../../../server/middleware/rateLimit"; ...