Nuxt

N

Nuxt

Nuxt Community Chat Server

Join

auth utils get used provider

Hello, I'm using Nuxt Auth Utils and the connection was successful, now I want to know if it's possible to get the provider used for the connection. Is it possible?

defineLazyHydrationComponent can't import component

this my code ``` <template> <div> <LazyListMovieStyleA />...

Dev server crashes after about an hour

I'm working on a nuxt 4 project and noticed the dev server crashes after about an hour with the following messages: ℹ nuxt.config.ts updated. Restarting Nuxt...
ℹ Nuxt Icon server bundle mode is set to local
...
No description

Is better-sqlite3 required with Nuxt Content?

I am using Nuxt Content with Nuxt 4 and when I run the dev environment, I am being prompted to also install the better-sqlite3 dependency, is it required with Nuxt Content if I am only going to be using markdown files in the content folder?

Nuxt content images are not loading - Nuxt Content v3.3.0

Hi, I'm creating a blog with nuxt content but when I'm using an image in the .md file they are not loading/ Below is first-blog.md file with all options I have tried:...
No description

Nuxt UI Table disappears when using mutable field ref()

Hello All, I am running into an issue where nuxt ui tables disappear after receiving data. I have been pulling my hair out trying to figure out why, there is no error, or warnings. ...
No description

Resolving TS issues in custom module

I changed my tsconfig to: ```ts { "extends": "./.nuxt/tsconfig.json", "exclude": [...

vite.config.ts vs app.config.ts

vite.config.ts vs app.config.ts

Using sidebase/nuxt-auth with GraphQL

Hello everybody, Has anybody got a good resource about how to leverage sidebase's nuxt-auth library, using a local provider, with GraphQL? I'm moving to GraphQL but I also really like sidebase's middlewares for page protection and tools. My auth backend uses GraphQL and provides a typical single endpoint: /graphql and fields for getting token, refresh token and session. From what I gather, what I would need to do is adapt the endpoints part of the configuration:...

why does this cause error?

i'm using useRequestEvent & useAsyncData in 2 composables, which are combined in the third one named useBoth. it causes error A composable that requires access to the Nuxt instance was called outside of a plugin, Nuxt hook, Nuxt middleware, or Vue setup function. if inside useBoth i comment out one of the composables, the error is gone reproduction here...

How do I upload my Nuxt templates to the official website? Where's the 'submit' button ?

Came here from Reddit ANS - I've built a Nuxt.js template I'd like to share. I can't find a direct upload or 'submit' button on the official Nuxt.js website. Am I looking in the wrong place, or is there a specific process for getting community templates listed there?...

[Need Non-AI Help] `nuxt generate` returns error when used with NuxtPicture and `avif,webp` format

I am using @nuxt/icon module to optimize image files located under public/ as it's been stated in the documentation. I was using <NuxtImg> and configured the modules as seen below ``` image: { provider: 'ipxStatic', staticFilename: '[name]-[hash].[ext]', // output file naming...

Does nuxt-auth-utils package support jwt or cookie based authentication?

I'm building a fullstack web application with a dotnet as a backend and am using Identity as a the auth solution. The user is authenticated using either jwt token or cookie based authentication but I can't find anything in the docs suggesting that nuxt-auth-utils supporting that...

Do I have to specify in the nuxt config files if I am using the app dir?

I am using Nuxt 4 and was wondering if I have to specify the src dir in the NuxtConfig file if the said file is in the root of the project and I am using the app dir structure.

Build Failure After Upgrading from Nuxt 3 to Nuxt 4 in Docker (Linux) – Rollup Module Error

I’m encountering a build failure after upgrading my project from Nuxt 3 to Nuxt 4 when building in a Linux-based Docker environment. The project was building successfully with Nuxt 3, but after the upgrade to Nuxt 4, I’m seeing errors related to Rollup and native bindings. I need help identifying the root cause and finding a solution to successfully build my Nuxt 4 project in Docker. Issue Description After upgrading from Nuxt 3 to Nuxt 4, the Docker build fails with the following errors during the npm install step, specifically when running nuxt prepare:...

Hook after module installation

Hi! I'm working on a new version of gsap nuxt module, and I want to add this new feature: After installing the module, the terminal asks you if you want to include some plugins in your configuration....

Nuxt 4 build but doesn't work

[request error] [unhandled] [GET] http://10.244.208.129:3200/ Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/app/.output/server/node_modules/unhead/dist/server.mjs' imported from /app/.output/server/chunks/routes/renderer.mjs at finalizeResolution (node:internal/modules/esm/resolve:275:11) ... 6 lines matching cause stack trace ... at ModuleJob._link (node:internal/modules/esm/module_job:175:49) {...

Build hook - dev only

I am trying to create pre-build script for my Nuxt app. So I have chosen defining build:before hook in nuxt.config.ts. The reason is copying files from mother dest. How can I only run this hook in development mode (npm run dev)? import.meta.dev is undefined there....

Nuxt Module require other libraries without installing them

I am creating custom Nuxt module and I want to make it depend on zod and @nuxt/ui, but not install them. I don't want to be something like @nuxt/ui that installs @nuxt/fonts instantly. I want that, because I don't want to release often version updates when for example new version of zod is released. Is it even possible? Are there modules that have optional logic when other is detected?...

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