2,706 questions
0
votes
0
answers
14
views
Error is previewing the build of Nuxt 3 Project project recently
We have a Nuxt 3 based website. We were able to run the website in dev mode, build as well as preview it.
Recently after a clean installation of the project with dependencies it is able to run on dev ...
0
votes
1
answer
25
views
I am trying to use before-leave to take a specific decision when the user changes the el-tab in Nuxt / Vue
I am using Element Plus tabs to switch between different page contents. Each tab contains a form. If a user fills out a form and tries to switch tabs without saving, they should receive a warning that ...
0
votes
1
answer
18
views
How to apply nuxt server middleware to pages only?
I use nuxt server middlewares in my project. They catch every request, whenever it's a page defined in the pages directory or something else (static assets etc). I want to limit some of my middlewares ...
-1
votes
0
answers
21
views
The problem of a sudden change in the color of the tag
I have a problem, I am writing an application on Nuxt, how can I make it and add the ability to add a specific class to a tag, when its NuxtLink path coincides with the rote path, when switching, the ...
1
vote
0
answers
142
views
I can't use @nuxtjs/seo and @nuxtjs/robots packages in nuxt 3
I have a package problem in my nuxt.js application
As soon as I install @nuxtjs/seo, and @nuxtjs/robots packages and add them to modules, the application starts giving an error. I tried to change ...
0
votes
0
answers
18
views
Compress HTML pages in Nuxt 3 beyond static assets
I'm currently working on a Nuxt 3 project with the following configuration:
export default defineNuxtConfig({
srcDir: "src/",
devtools: { enabled: true },
ssr: true,
modules: [ ... ]...
0
votes
0
answers
37
views
Multiple Nuxt3 application on Plesk (Phusion Passenger)
I can't get different Nuxt3 node applications to run on my Plesk server on 2 different domains.
I have stored both separately (and both are accessible individually) but as soon as the second one is ...
0
votes
0
answers
17
views
useRuntimeConfig().public.apiUrl becomes undefined on client-side navigation (Dockerized setup)
I’m running a Nuxt 3 app in a Docker container, and I’m having an issue where useRuntimeConfig().public.apiUrl is undefined when navigating from an SSR page to a non-SSR page. However, it works ...
0
votes
1
answer
61
views
How do I deploy a Nuxt 3 project from Azure repos using Azure pipelines?
Repost from discussion
I've linked basically the same question. How do I deploy a Nuxt 3 app with DevOps pipelines? I've currently set up the following:
trigger:
- master
pool:
vmImage: ubuntu-...
0
votes
0
answers
18
views
Vercel Deployment Error: "Schema hasn\'t been registered for model \"Product\"" in Nuxt/Mongoose Serverless Function
I have a Nuxt project that uses Mongoose and a serverless architecture on Vercel. Locally, I can call my cart API endpoint (located at /server/api/cart/index.get.ts) without issues, but when deployed ...
0
votes
0
answers
28
views
Nuxt 3: Meta Tags Not Updating in "View Page Source" but Visible in DevTools
Description:
I'm using Nuxt 3 with useHead() to set dynamic meta tags based on locale. The meta tags appear correctly in the Elements tab (DevTools) but are missing in "View Page Source".
...
0
votes
0
answers
34
views
Difference between nuxtApp.provide and vueApp.provide
In nuxt 3 you have two alternative ways to provide something globally
// using nuxtApp instance
useNuxtApp().provide('key', 'value')
console.log(nuxtApp.$key) // value
// using vueApp instance
...
-1
votes
0
answers
52
views
How to simulate a user session to access protected pages during end-to-end tests in Playwright and Nuxt.js [closed]
I use Nuxt Auth Utils which works great, but in my e2e-tests I can't access my protected pages because I check if the user is logged in (useUserSession()) with my middleware.
The Middleware:
...
0
votes
1
answer
43
views
Caching - watch, refs, and navigation behvior
I'm having this issue where I'm using Vue3 and Nuxt, and I need a loading function to run once everytime the user navigates to the page, but delay loading if the global data isn't available yet.
const ...
0
votes
1
answer
24
views
$t - global i18n function does not work in nuxt composables
so i have this in my nuxt.config
i18n: {
lazy: true,
langDir: '../locales',
locales: getLocales(),
defaultLocale: 'en',
strategy: 'no_prefix',
experimental: {
...