Nuxt

N

Nuxt

Nuxt Community Chat Server

Join

How do you get coverage set up with Playwright?

I've tried using the vitest test runner with istanbul coverage but it doesn't report coverage for playwright tests. I've also tried using the playwright test runner but can't seem to get coverage working with that at all. Any help would be greatly appreciated. 😃...

Nuxtimage custom provider issue

I have created customer provider file accroding nuxt image documentation but got thid error module '"#image"' has no exported member 'defineProvider' import { joinURL } from 'ufo' import { createOperationsGenerator, defineProvider } from '#image'...

how do I trigger form validation only when submission is attempted?

export type FormInputEvents = 'input' | 'blur' | 'change' | 'focus';

Create documents with sanity module

Im trying to use the sanity module to create documents, but it returns insufficent permission. I have tested it with a curl on the endpoint with the same token and it lets me create and i have checked that the token is set. What could be the cause. Is it possible to log the outgoing requests auth token directly?

When does the timeline NuxtUI component release?

Can't seem to make it work, I'm guessing the "soon" tag means it can't be used yet. Is there an ETA for when I could use this? Please tag me when responding, thanks! https://ui.nuxt.com/components/timeline...

Nuxt Sanity module, unable to connect when some routes are pre-rendered.

Hey everyone, I'm currently working on a project using Nuxt Sanity module. It works great when deployed to Netlify (nitro preset netlify), but as soon as I prerender some routes with routeRules in my nuxt.config file, the live preview stops working, and I get this message: Unable to connect, check the browser console for more information. In the console, I'm also getting this error: Unable to connect to visual editing. Make sure you've set up '@sanity/visual-editing' correctly. Ideally, I'd like to keep some routes static while still using the server routes for the live preview (/preview/enable and /preview/disable). Any idea how I could do that?...

persistne issue during any nuxt3 app init: ERROR Cannot read properties of undefined.

during installation of any new nuxt3-app I am experiencing an issue, it seems to be global, anyone could share some hints how to fix it?
No description

nuxt ui navigation menu on tablets

Could you explain the nuxt ui navigation menu how its supposed to work on tables? on desktop it works great the menu appears on hover, on mobile i hide it and use the vertical layout, but on my ipad when testing clicking it just goes to the parent link and i can't get the menu to appear

NuxtUI - why are the children of this nav item so wide?

``` <template> <UContainer class="py-10"> <!-- TODO: Add the icon at some point --> <div class="p-1.5">...
No description

Supabase Authentication SSR

can i do supabase authentication on server side or there is only clinet side options ? and i there is how ?

tanstack Query

using tanstack query with nuxt is the best approach or should i use nuxt buil-in functions ?

tryna set auth headers for API calls before they're sent

good day everyone, i have quite a number of APIs in my server/api directory, i'm basically mimicking my actual API endpoints, proxying, if you may. and a lot of the endpoints require "Authorization": "Bearer <accessToken>" to be set, and error 401 to be handled when necessary by refreshing the token, and retrying the request if token refresh was successful or taking them to login page if it wasn't i.e. refreshToken also expired, would've been fine if i was doing this in a couple of endpoin...

Nuxt UI Timeline

Hey sorry if this is a stupid question, but does anyone know if you can use the timeline component even though its unreleased when not using nuxt UI pro? https://ui.nuxt.com/components/timeline

Extending Nuxt UI components etc

So specifically i want to extend the provideDashboardContext from DashboardGroup. My app shell has one main sidebar that's always collapsed to icons only state, a top navigation bar, and a contextual sidebar (via dashboardpanel) that is togglable and i feel like the dashboard context would be the right entry point to start tweaking so they are aware of each other's state as needed and can do the yes do x (that's already supported) but also do y (additional custom action) type of thing.. what would be right way to go about this.. i found https://gist.github.com/lordzouga/866c515f27e9b0eb3bc8d47842afd44c as an example to extend a nuxt-ui template but would appreciate - confirmation that the approach makes sense - the recommended way to do this...

How do I enable "headful mode" when running E2Es?

I have Vitest set up and I can run tests, but I need to be able to see these tests run sometimes for debugging purposes. I cannot get headless mode enabled. Browser Mode seems really cool, but it currently does not work (I can share screenshots and logs if that sounds incorrect, but considering it is an experimental feature I'm assuming that it just doesn't work yet). How do I turn off headless mode?...

Server plugins not getting invoked

Hi all, I created a new Nuxt app using npx nuxi init. After it was created, I changed directory in to the project, ran npm run dev. Worked ok, browser shows default page. I added file plugins/01.hello.server.ts with content export default defineNuxtPlugin(async () => { console.log('hello nuxt server') }). Ran the app via npm run dev & expected to see hello nuxt server in the terminal, but it didn't show. node --version is v22.15.1 & npm --version is 10.9.2. What gives?...

Nuxt UI 3 - UTabs component. ui prop options.

UTabs component. What does ui prop options "indicator", "trigger" and "list" mean?

UCheckboxGroup nuxt ui add icons to each option infront of the label

UCheckboxGroup nuxt ui add icons to each option infront of the label

nuxt-auth-utils: LinkedIn OAuth not triggering callbacks

Not sure if anyone has experience with LinkedIn provider with nuxt-auth-utils, but the onSuccess and onError callback are not triggering for me. It shows the LinkedIn page properly, lets you log in, adds a ?code= query param and redirects, but then doesn't trigger either callback. Reproduction and further details here: https://github.com/atinux/nuxt-auth-utils/issues/416....

[Vue warn]: Slot "default" invoked outside of the render function: this will not track dependencies

I get these warnings all the time. Should I worry about this? Everything seems working fine.