13,107 questions
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";
...
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
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 ...
-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 ...
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:
"...
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 ...
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
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"...
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 ...
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
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 ...
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 ...
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
...