Nuxt

N

Nuxt

Nuxt Community Chat Server

Join

How to keep scroll position when navigating from NuxtLink

any experienced pookie about this? i cant figure it out... browser back button works fine

Is it possible to tell Nuxt NOT to hit it's local apis and instead hit them externally?

When Nuxt finds references to local apis (/api/ etc..) on SSR it will just call those functions locally instead of "going out and then coming back in". Normally this is a good thing, but in our case not so much. We're calling a 3rd party API from our APIs. We're getting a lot of 429 errors (too many requests) from the 3rd party API. If we enable cache on the Nuxt APIs, that doesn't seem to help much because we have 25-50 nodes running and we get a lot of server-side hits. That means each has it's own version of that cache so our cache-hit ratio is very poor. If we could just tell Nuxt NOT to run those apis locally and just call the API like normal, we could take advantage of our edge-cache (cloudfront) and our cache-hit ratios would be much better....

Nuxt 3 on Vercel - SWR/ISR issues and

I am having two types of issues on Vercel right now, and I feel like they came out of the blue since I wasn't changing any code when this started happening (last 24 hours). A) Client side errors with console logs like: Failed to find a valid digest in the 'integrity' attribute for resource 'https://my-commit-name.vercel.app/_nuxt/CFIb-zog.js' with computed SHA-384 integrity 'N5IfvMkgDYriwB7nB453NzJRZKbn/5YL7ewLms9RVqdI8GDsoGq3w'. The resource has been blocked. If I hard-refresh, this gets fixed, but happens again whenever I deploy....

ERROR Error while importing module @nuxt/content: Error: Cannot find module 'zod-to-json-schema'

ERROR Error while importing module @nuxt/content: Error: Cannot find module 'zod-to-json-schema'

Functions gets called twice.

I have a button calling a function using @click binding. In there i have a simple API call await $fetch("http://localhost:8080/") But that request gets sent twice during development....

@source path blown up in module build

I have a module that utilizes tailwind 4 and has a source like-a-so:
@source "./../../**/*.vue"
@source "./../../**/*.vue"
When I build it gets transformed to...

nuxt4 as pwa

I'm struggling to get nuxt4 to work as a PWA with the @vite-pwa/nuxt plugin. Is it compatible to begin with?

How to disable default styles in nuxt

Nuxt has some default styles (like dark green background color) and idk how to remove it. I checked all directories and configs.

UCalendar theming in Nuxt UI 4.1: custom palette + day-cell hover/variants

Hi! 👋 I’m using Nuxt 4.1 with Nuxt UI 4.1 and the UCalendar component. I’d like to fully customize its colors and states. Goals:...

Lazy data caching issue (reactivity)

I've tried so many things, but unless getTotalTradesWithUser's argument is an actual static value, it refuses to load the cached data and refetches it every time. ``js const getUserId = () => props.userId; const uid = ${getUserId()}`; // caching refuses to work......
No description

How do I create a ratelimit on h3?

How can I create a ratelimit that blocks after a certain number of requests?

Is it possible to register layers inside module?

I want to create a module that includes other modules and layers for modules it's easy to do with moduleDependencies for layers I have try with nuxt.options.extends but it's not work one solution for me now is extends target layer directly to app separate from module...

Cannot redefine property: _path

Hello, im getting this error time to time... its a new project Node: v22.18.0 Nuxt 4.1.1 with Nitro 2.12.6 ...
No description

ShadCN vue ovveriding skeleton component

I am using nuxt with shadcn vue and each component normally loads in with an index.ts file. How can i prevent this warning from showing up? WARN Two component files resolving to the same name Sonner: nuxt 6:40:30 PM - /Users/rjawaji/Developer/cityguide/cityguide-admin/app/components/ui/sonner/index.ts...
No description

zod editor nuxt/content latest release

Hello, with the latest release of nuxt/content, it says to change the import for zod but when doing so, we no longer have access to the editor ``` dark: z.string().editor({ input: 'media' }),...

IOS not adding images to file input

Hello Im struggelig with a really weird issue. I have a form that takes in images using the UFileUpload component accepting image/*. I have a user that can open the iPhone image selection prompt and select an image, but when they press add nothing happens. What could be causing this?...

Extract children from li

I’m trying to render the content of a slot in a component, but the content inside the <li> isn’t showing only the icons appear. Does anyone know what I’m doing wrong here?

NuxtPage seem to work when using shadcn sidebar

I'm new to vue in general and I was following the shadcn setup instructions for the sidebar. For some reason when I use <NuxtPage /> Nothing seems to render however it gets fixed when i use <slot/>. Is this expected or am i doing something wrong? ```vue <script setup lang="ts"> import AppSidebar from "@/components/AppSidebar.vue"...

RollupError related to Vue5.8.3(?)

Hi there! When I try to build my Nuxt 4 project I get an error that I can't figure out how to fix:
[3:16:24 PM] ERROR node_modules/.cache/nuxt/.nuxt/dist/server/server.mjs (1:7): "default" is not exported by "node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue/index.mjs", imported by "node_modules/.cache/nuxt/.nuxt/dist/server/server.mjs".
[3:16:24 PM] ERROR node_modules/.cache/nuxt/.nuxt/dist/server/server.mjs (1:7): "default" is not exported by "node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue/index.mjs", imported by "node_modules/.cache/nuxt/.nuxt/dist/server/server.mjs".
...