Nuxt

N

Nuxt

Nuxt Community Chat Server

Join

Can't get basic e2e tests working

Is it supposed to be possible to test SPAs using @nuxt/test-utils and vitest? When I run a basic test (createPage, textContent) it doesn't match any text actually shown, what I get back is just a ton of javascript. The test also takes over a hundred seconds before it fails.
No description

Nitro Error Building on CF Pages

I get this error:
[error] [nitro] Error: ENOTDIR: not a directory, stat '/opt/buildhome/repo/node_modules/unenv/dist/runtime/node/punycode.mjs/'
[error] [nitro] Error: ENOTDIR: not a directory, stat '/opt/buildhome/repo/node_modules/unenv/dist/runtime/node/punycode.mjs/'
when trying to build on cloudflare pages. The build worked as recently as yesterday, but does not work anymore after I made entirely unrelated changes. Any ideas? I've tried pinning the unenv version....

CANNOT RESOLVE #app & #imports from vitest into my nuxt-module

Hello everyone, i'm recently working on my own nuxt-module. And I want to add some tests. But I've some imports from "#imports" or "#app" (like useNuxtApp) into my nuxt module, and these type of imports raised some errors when i'm running tests. I tryied to add some alliases into my vitest.config.ts, but nothing changed.

Docker Cant Read Node Module for Nuxt

hello is anyone using nuxt in docker? im trying to run my nuxt project inside docker but it cant read the node_modules i've already try a lot approach but still cant read the node module...
No description

Find nuxt code deployment model

How many code organization models does nuxtjs have, and what is the name of that code organization model by default in nuxt?

Nuxt generate and wrong path

Hi all. Can anyone point me in the right direction for this issue... (see media) the joint-plus package for some reason does not have either relative or absolute path...
No description

Auth session missing!

export const isAuthenticated = async (event: any) => { const { user, error } = await serverSupabaseUser(event); if (error) { console.log("Authentication error:", error);...

"bun run dev" is not working.

Hi' there. My error log is here. ```...

Question about consistently increasing number of nodes, listeners and heap? Is this a memory leak?

Was doing some performance profiling because I was experiencing the memory leak issue in nuxt/devtools with Node V22. (this issue https://github.com/nuxt/devtools/issues/761#issuecomment-2545569905). So the following observations are with dev tools turned OFF in local development. Or in a deployed production environment. My question is why are the number of nodes, and therefore listeners and heap size consistently increasing? See memory profile screenshots from chrome devtools. I'm not saying this is a problem because the experience of using the website is still fast and snappy. But I'm curious if this would technically be a memory leak because the heap is still trending upwards as you can see in the screenshots....
No description

With custom Colors all texts are black

Hey guys, i tried to implement more colors because only 7 defaults are way to less. but somehow after the changes all my button texts get black. ```ts app.config.ts...

UI v3: Styling is off (no rounded corners)

Hi guys, I just upgraded to Nuxt UI v3 following the migration guide. This worked so far, but I have one issue: All components are missing the normal rounded corners. Do you have any idea why that is?...

YML interpolation text styling

I've used the following YML text (like used here: https://github.com/nuxt-ui-pro/landing/blob/main/content/index.yml) title: Build your landing with [Nuxt UI Pro]{.text-(--ui-primary)} on my Nuxt UI Pro project . However, the render result does not apply any classes to the selected words "Nuxt UI Pro", it simply prints out all the characters. What am I missing?...

"sideEffects" is false in the enclosing "package.json" file

I am trying to publish my project to Cloudflare Pages, but I get the following error when I try to run the project. This is from running it localy with Wrangler, but there are the same errors when it's published to CF Pages. ""sideEffects" is false in the enclosing "package.json" file" Any idea why this is? I have trouble making a minimal viable version....

Fetch only once on initial page load

I have an endpoint from my backend, with important data like seo, settings etc. I fetch it server side but I notice on navigation it refetch on client side, is there a way to prevent this? I want to fetch it only on first load.

Using TailwindCSS classes in a Nuxt Module

Hi, So i'm developing a module for Nuxt which uses Tailwind for styling. Problem is tailwind dosn't make styles for the classes i write in my module components. I can't use the direct options as i am not installing Tailwind from the module, but rather in a external layer. So what are my options? How do i make tailwind actually generate the styles? Thanks...

Typerrors in Nuxt ui components

Is there any way to temporally ignore these errors when running npm run generate? Currently they are blocking my deployment....
No description

"No data" text in Table Component

Hey guys, how can i replace the text "No data" when the Table is empty? https://ui.nuxt.com/components/table

LOOKING FOR FULLSTACK DEVELOPER

🚀 I am looking for developers to contribute to various aspects of my work. This role requires: - Experience or willingness to support in technical interview is big plus - Strong technical expertise - Compensation: $70/hour 📢 A quick call is necessary before getting started....

How to use lazy components in composables?

Hi! In new nuxt version they properly added delayed hydration, which is awesome, but I have composable like this (abstraction over nuxt ui component) ```ts import { LazyPanelModalConfirmDelete } from '#components' export function useConfirmModal(modalData: any) {...

Nuxt 4 / relative imports path in server routes

After set compatibilityVersion: 4 the relative imports import prisma from '~/server/utils/prisma' in my server routes doesn't work anymore. I can set import prisma from '../../../server/utils/prisma' but it would be nice to have them a bit more relative. Anyone knows, how to set them correctly? Tnx...
No description