Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
30 views

class-transformer doesn't work. Invalid character: '@'

I'm a beginner with nuxt. I installed 'class-transformer' in Nuxt3 application. And I created Article.ts and used it in script block like below. import { Expose } from "class-transformer"; ...
Ciel's user avatar
  • 11
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 ...
Adham Saleh's user avatar
0 votes
1 answer
17 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 ...
Romalex's user avatar
  • 1,829
-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 ...
user27818635's user avatar
0 votes
0 answers
25 views

How to permanently override nested/transitive dependencies in npm for security fixes (Axios in @nuxtjs/axios)

I'm working on a Nuxt 2 project where I need to fix a security vulnerability in Axios v0.21.4, which is a nested dependency of @nuxtjs/axios. I've added the following to my package.json: "...
user20042604's user avatar
1 vote
0 answers
141 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 ...
Erol Senol's user avatar
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: [ ... ]...
kevin castañeda's user avatar
0 votes
1 answer
13 views

How do I set a ref on the underlying img element in NuxtImg?

I am trying to set a ref on the NuxtImg as I want to pass the image along to a shader component. I have tried this but it does not work: <NuxtImg src="/thelogo.png" ref="thelogo"...
Thomas James Thorstensson's user avatar
0 votes
1 answer
23 views

Nuxt/Vue/VueUse localStorage delay instantiation until prop is populated

I'd like to store a user's settings in localStorage within a Vue component. The challenge is I'd like the local storage key to be named with the value of a prop. I'm using vueUse localStorage. I'd ...
saschwarz's user avatar
  • 1,237
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 ...
wafeBreaker's user avatar
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 ...
zbla's user avatar
  • 31
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-...
Vasil Verdouw's user avatar
0 votes
0 answers
28 views

nuxtjs/sitemap fetchContainer.$fetch is not a function

I am generating the sitemap dynamically, using the server/api/sitemap/urls.ts, and locally, when build and running node, the sitemap works as it should, fetching everything from the CMS. The problem ...
Carlos Pinto Guedes's user avatar
0 votes
3 answers
50 views

Does a Nuxt layout requires special arrangements for single file components?

I created a Nuxt project from scratch to learn about layouts. I changed app.vue to <template> <NuxtLayout> <NuxtPage /> </NuxtLayout> </template> In layouts I ...
WoJ's user avatar
  • 30.1k
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 ...
Romalex's user avatar
  • 1,829

15 30 50 per page
1
2 3 4 5
874