2,634 questions
Best practices
1
vote
1
replies
32
views
How to enable cross-feature communication in Nuxt without breaking DDD boundaries
I'm building a Nuxt 3 application using a feature-based architecture inspired by Domain-Driven Design.
Each feature is meant to be fully isolated, with its own components, state, API layer, and ...
0
votes
0
answers
33
views
offline.html not showing correctly in PWA 1.0.7 for nuxt 3.13
I have nuxt 3.13 with PWA module 1.0.7
the service worker is work fine but offline page not working.
I create offline.html in public folder and nuxt.config.js is like below
export default ...
0
votes
0
answers
43
views
Nuxt seo prerendering
I need help with this, I need SEO for 3 pages index, Faq and Blog when I run npx nuxt generate and see the index.html in .output/public I only see this in the viewsource I don't see the html like the ...
0
votes
1
answer
176
views
Nuxt 3 to 4 migration : will it fix memory issues?
I have a Nuxt 3 production app hosted on Scalingo (it's like Heroku but is a french company)
I have so many container crashes because of memory issues when a lot of people are browsing the website.
...
0
votes
0
answers
69
views
Custom templete with Nuxt Timeline
No matter what I do my custom template does not apply. In the timeline I always see Title first and then description. This is my code:
<template>
<div class="p-8">
<h1 ...
0
votes
0
answers
82
views
Nuxt 3 with i18n missing translations all the sudden
Out of the blue my Nuxt 3 project (which has been running fine for over 8 months) is missing translations. Translations which are clearly in the correct files.
Also, when building the project, some of ...
0
votes
0
answers
19
views
Questions about browser cache negotiation in Nuxt
I want to implement the cache negotiation for the public folder in the root directory. I configured it as follows in nuxt.config.ts. However, after running pnpm dev and pnpm generate, and then npx ...
1
vote
0
answers
69
views
Vue watch triggers on route change
I’m working on a Nuxt 3 project and encountering an issue with the watch property. I’m watching $route.query, and whenever a query parameter changes, I call an API to fetch data.
The problem is that ...
0
votes
1
answer
44
views
webdatarocks custom element hides then pivot on fullscreen mode
I use nuxt 3, and webdatarocks.
For toolbar i created new btn that calls "dialog" with select and options.
function customizePivotToolbar(toolbar) {
const tabs = toolbar.getTabs();
tabs....
0
votes
0
answers
51
views
nuxt build error: appendHeader is not defined
I have the following problem: there is no issue when I run npm run dev everything works fine. However, when I run npm run build I get the following error:
Console:
[plugin @tailwindcss/vite:generate:...
0
votes
0
answers
74
views
How to Use Public Assets from the Root of a Monorepo in Nuxt 3 with Nuxt Content instead of projects public/
I have a monorep based set-up where all shared static assets live in <repo>/public/img. I’d like every Nuxt app under <repo>/apps/… to reference those images directly. I’d like all of my ...
0
votes
0
answers
35
views
Custom alias registered using Nuxt aliases doesn't resolve to the correct path in tsconfig.json
I'm building a Nuxt module which registers a virtual file (a .json file) using .addTemplate() and assigns an alias (#my-module) the value of the .dst property from the returned object from the ....
0
votes
0
answers
28
views
ExcelJS in a nuxt server api
I'm trying to use exceljs in a server api on Nuxt for some reason when I deploy to cloudflare I get an error claiming a "message": "Object prototype may only be an Object or null: ...
0
votes
0
answers
37
views
How to make CSV converter work in my NUXT3 project?
I am trying to make this csv converter work but can't make it work properly. The code is executing well but it is failing at the final step where it has to generate (blob) for objectURL. Instead it is ...
0
votes
1
answer
175
views
Nuxt 3/Nuxt UI UNavigationMenu won’t highlight hash‐based section on page reload
I’m using the Nuxt UI <UNavigationMenu> component in my Nuxt 3 app to render a header nav that scrolls to sections via hash links within my pages/index.vue (#about, #products, #news, etc.). ...
3
votes
2
answers
234
views
Nuxt 3 and Laravel 12 Sanctum SPA Authentication Generating New Session Every Request
Here's the situation I'm facing in my project:
Stack:
Backend: Laravel 12 (session driver: database, Sanctum SPA authentication)
Frontend: Nuxt 3
Backend runs at: localhost:8000
Frontend runs at: ...
0
votes
0
answers
76
views
Error: Undefined Mixin in Nuxt 3 when using Sass — "Pre-transform error: [sass] Error: Undefined mixin." I'm working with a Nuxt 3 project
I'm working with a Nuxt 3 project, and I'm getting the following error related to Sass mixins when I try to run the dev server:
➜ DevTools: press Shift + Alt + D in the browser (v2.5.0) ...
0
votes
1
answer
31
views
How to send back an image from nuxt3 api endpoint?
I want to secure my images that I send back, so I send it back through an endpoint, but when I do that, chrome can't read it. It sees like 2.4mb being transferred, but the resource size ends up being ...
0
votes
0
answers
14
views
nuxt-mail working in dev but not in production
I configured nuxt-mail in the nuxt.config.js file like (My EMAIL_HOST env var is the domain of my mail server):
mail: {
message: {
from: process.env.EMAIL_USERNAME,
to: process.env....
0
votes
0
answers
131
views
Issue using Primevue Dynamic Dialog inside Nuxt 3 application
I'm trying to use PrimeVue DynamicDialog (https://primevue.org/dynamicdialog) inside my Nuxt 3 application. So I built a simple test page with a button that when clicked has to show a popup with a ...
0
votes
0
answers
34
views
Test Contentful composable with useNuxtApp - function undefined
I have a Nuxt composable that fetches data from Contentful using the contentful client's getEntries function. It's working on the frontend of my website but when I run my tests i'm getting:
TypeError: ...
0
votes
1
answer
59
views
Vue Test Utils on async component always returning empty/undefined
I am updating my project from Vue 2/Nuxt 2 to Vue 3/Nuxt 3. As i've been doing this my tests have broken and i'm trying to resolve them but every way I try to shallowMount my component returns an ...
1
vote
0
answers
61
views
Nuxt doesn't return a compressed document
I'm struggling trying to optimize my Nuxt3 app. When I run lighthouse it tells me to activate compression for text files:
But when I look at the request the document is loaded without compression ...
1
vote
0
answers
143
views
Why is sidebase/nuxt-auth not working in production without ssr?
I'm using sidebase's nuxt-auth to setup authentication, and everything works fine in development mode, but not when deployed with npm run build. Specifically, the getServerSession() function always ...
1
vote
1
answer
91
views
plugin:nuxt:imports-transform unimport failed to find "queryContent" imported from "#imports"
H3Error: [vite-node] [plugin:nuxt:imports-transform] [VITE_ERROR] /node_modules/nuxt-toc/dist/runtime/components/CustomQuery.vue
import { hash } from 'ohash' import { toRefs,
defineComponent, h, ...