Nuxt

N

Nuxt

Nuxt Community Chat Server

Join

Error deploy to nuxthub

I have this error:
Error while publishing deployment: "Uncaught Error: No such module \"node:fs\".\n at chunks/nitro/nitro.mjs:1:619146\n at chunks/nitro/nitro.mjs:1:614015\n at chunks/nitro/nitro.mjs:1:640111\n" - [POST] "https://admin.hub.nuxt.com/api/teams/red-star071/projects/wolfstar-rocks/production/deploy/worker/complete": 400 Cloudflare API error
Error while publishing deployment: "Uncaught Error: No such module \"node:fs\".\n at chunks/nitro/nitro.mjs:1:619146\n at chunks/nitro/nitro.mjs:1:614015\n at chunks/nitro/nitro.mjs:1:640111\n" - [POST] "https://admin.hub.nuxt.com/api/teams/red-star071/projects/wolfstar-rocks/production/deploy/worker/complete": 400 Cloudflare API error
here source code: https://github.com/wolfstar-project/wolfstar.rocks/tree/refactor/imagine-an-app

Optimize an app

I've reach the point of ~100 users on my app. How I optimize front end wise - my application? Any guides?...

`#components` conflict when auto-importing components from an external package

Hi, I'm trying to write a simple nuxt module to add auto import support for a package's exported components. However, the external package uses the #components import mapping internally, and it seems to conflict with nuxt's #components. Here is a demo; it uses pnpm's workspaces to install a local pkg package as a dependency for the nuxt project. The module simply adds a component from pkg with addComponent, and the pkg's package.json uses the #components import mapping. Running pnpm dev yields...

nuxt-security. strict-transport-security

Hello. I found an error in the module related to the "strict-transport-security" header setting. When checking the site settings, an "Invalid syntax" error occurs. ...
No description

Deployment via docker

I'm going to deploy a nuxt application + a custom server in dotnet via docker and docker compose on my homelab. That will be for my dev deployment while the production deployment will happen via Azure. In the deployment section of nuxt I cannot see anything about docker deployment specifically so I guess it is just a normal node js image and run nuxt build and then run it?...

modulepreload 和 prefetch 能够迁移到 body 最下面么?

modulepreload 和 prefetch 能够迁移到 body 最下面么?

deploying nuxt server function on firebase is slow takes more than a minute

any recommendations how to optimize this or is it just what it is?

Nuxt 2 long delay before application is loaded

Hi, currently building a bigger Nuxt 2 SSR app. When I load the page up on staging, there is a big delay between the two chunks highlighted. The second one highlighted is only started at 8 seconds, which is waaaay to long. What could the reasons for this be and how can I debug and find out why this is taking so long to load?
No description

Nuxt/Ui Navigation menu

I am using the nuxt/ui module with and i am trying to make it so the dropdown for events floats below the "events" icon and doesnt take up the whole width of the page, at its min width, i also need too be able to change other css properties of it ```html <template> <UNavigationMenu ...

Long build time on vercel or github actions

As per the title. I have incredibly long build times. Locally it takes about 3minutes. on vercel after 15 minutes it goes out of memory. It's a rather large project (nuxt 3). Not sure how to start optimising this? I analyzed the bundle but nothing too strange there....
No description

Unwanted UDashboardNav behavior in nuxt 3.17.7

I have an index.vue page with a UDashboardPanel but using the setBreadcrumbs from useDashboard() and then in the [id].vue page i use the UDashboardNavbar with UBreadcrumb. For More context, i'm not the regular dev on this part of the projet and i saw this in another page. The behavior expected is that on the id.page i should only see the custom Ubreadcrumb with the links but i see two breadcumbs, the original one from the index.vue and the custom one. We have the default layout with UDashboardGroup with a UDashboardSidebar and a slot. I tried to reproduce what worked one another page but maybe i'm missing something to add somewhere....
No description

ENOENT on startup using Bun 1.2.20 and Nuxt 4 on Windows

Hi, I just created a project with Nuxt 4 using bun as package manager / runtime. It's pretty much a test to see if I could make use of some Bun APIs with certain libraries without having to play around with my whole application. While doing so, I did the usual to create and launch the application, just making sure to use bun --bun run dev so it used Bun as runtime. Yet I got the ENOENT error. Steps to reproduce:...

Adding server only imports

In a module, is it possible to add a function that can be imported from #imports but only on the server/in a Nitro context? As in, I don't want those imports available on the client/Nuxt app.

css 文件是内联样式,如何改成外链样式?

css 文件是内联样式,如何改成外链样式?

Provide clarification for nuxt 4 directory structure

I don't quite understand the directory structure. More specifically, how are the plugins, and modules folders shared betwee app and server? If I want to create a new custom module that works on both app and server side, should I create a shared folder, then a modules folder? It would be easier to just have a root level modules folder.

Very slow development performance on windows. (12s for blank nuxt project)

I have performance issues on windows. Usually I'm using WSL where I don't have any problems but when I'm launching it directly on windows it's very slow. I created just a blank project and it's loading very slow. Does anyone know why this is happening? Or what I could try? node - v22.15.0 package manager: pnpm ...

Setup prom-client metrics collector server middleware to capture all routes

I want to define a middleware to collect metrics of api routes. With the help of AI I came up with such server/middleware: ```typescript export default defineEventHandler(async (event) => { const url = getRequestURL(event)...

Struggling with Nuxt UI v2 → v3 migration + Tailwind issues

I'm having quite a few difficulties migrating from Nuxt UI v2 to v3 and would love to hear about your experiences. Current setup: Nuxt 3.x Nuxt UI v3...

ERROR Nuxt Build Error: [commonjs--resolver] Invalid module ".prisma/client/index-browser" is not a

Hi i'm using Nuxt 4 + Prisma and i'm trying to build it but I encountered this error during the process. Here are the versions i'm currently using: "@prisma/client": "^6.14.0", "@prisma/nuxt": "^0.3.0",...

Type declarations with `addServerTemplate` in a module

When using addServerTemplate, how should I add type declarations? The docs here only explain how to do this for addTemplate. Thanks!...