Questions tagged [nuxtjs3]

Tag for questions related Nuxt3. More info can be found here: https://nuxt.com/

Tag for questions related Nuxt3. More info can be found here: https://nuxt.com/

1553 questions
0
votes
0 answers

How to create a nuxt +ssr:false project?

I have a nuxt3 project in nuxt.config.js import { defineNuxtConfig } from "nuxt"; import path from "path"; import fs from "fs"; export default defineNuxtConfig({ builder: "webpack", ssr: false, hooks: { …
Serio
  • 465
  • 4
  • 15
0
votes
0 answers

how to parse date and time from timestamp in nuxt3

I want to parse date and time from the following time stamp in my Nuxt3 project using Date Fns. on Date select on calender, this is the value we get. const SelectedDate = "Sat Jul 02 2022 14:56:04 GMT+0530 (India Standard Time)" I want to extract…
0
votes
1 answer

Why can I not use a dynamic import when using Nuxt3

I am trying to create a component that will let me pass in the name of the icon I am looking for and import that icon dynamically via unplugin-icons, it seems to be not working whenever the path for the import is dynamic. If I were to just type a…
Luke Longo
  • 119
  • 1
  • 7
0
votes
1 answer

Components auto imports in Nuxt 3 with modules

I want to use modules (so not the default structure directories) with Nuxt, something like that: The problem is that I don't know how to configure Nuxt or my module to auto import the components in nested folders like the Card folders. For example…
Adri HM
  • 2,314
  • 2
  • 17
  • 30
0
votes
0 answers

How can i change app.template.html to index.html in .nuxt/views folder

I'm using NuxtJS v2 and I'm having an issue trying to rename the file app.template.html to index.html in .nuxt/views folder. i've looked into the documentation in here but with no progress, any help will be appreciated.
Nour Basha
  • 1
  • 2
  • 2
0
votes
0 answers

How to resolve 431 error - return base 64 from nitro server to frontend

I'm currently working on a project to learn more about Nuxt 3. I am transforming an image on the server side and want to return a base 64 string back to the client: // server/api/image.js import imageToBase64 from 'image-to-base64' export default…
wittgenstein
  • 3,670
  • 7
  • 24
  • 41
0
votes
1 answer

How to cast to result of useFetch in Nuxt3

I want to cast result of useFetch to List async getAllFiscalYear(): Promise[]> { let customTypeList: CustomType[] = []; customTypeList= await useFetch('/api/list') as CustomType[]; return CustomTypeList; };
0
votes
2 answers

Can't use ref to select swiper methods

I am trying to invoke .slideNext() & .slidePrev that come with swiper when the user presses the arrow keys. I've managed to do this with querySelector like this: const changeSlide = (event: KeyboardEvent) => { const slides =…
Marnix Elling
  • 335
  • 1
  • 3
  • 15
0
votes
1 answer

Favicon not showing on safari despite several sizes

i am trying to get a favicon to display on safari it works on every other browser except safari. The application i built runs on Nuxt3 with composition api. In the default layout i've added the following code using Nuxt components: …
Marnix Elling
  • 335
  • 1
  • 3
  • 15
0
votes
1 answer

Nuxt 3 with client-side only rendering doesn't load

I want to build a client-side only application via Nuxt 3, and just as the docs describe here I've added ssr: false to my nuxt config. I then used the nuxi build command to build the application, but it still says it needs to be run using node. I…
0
votes
1 answer

Nuxt3 router doesn't push user to certain page

I have two middlewares: Login page middleware pushes logged in user to his maximum's role allowed dashboard (example: user, owner -> owner / user -> user) Panel middleware checks user roles and if there's no permission to visit the page it…
Georglider
  • 52
  • 6
0
votes
0 answers

nuxt3 component keeping input value after derendering

I have an application where I pass information in components to be sent to the database... after sending I use v-if to hide this component, but when opening this component again the values ​​passed in the previous inputs appear again in this new…
0
votes
0 answers

Bootstrap 5 and Nuxt3 and OffCanvas: Why does the backdrop not darken when toggled?

I am trying to use the Bootstrap 5 Offcanvas component with Nuxt3. I have the offcanvas working, but does anyone know why the dark "backdrop" is not shown? The example I am trying to emulate is here:…
redshift
  • 4,815
  • 13
  • 75
  • 138
0
votes
1 answer

Nuxt3 and Prismic: dynamic [uid] page - content loads entering a page, but not through a link

If I come to a page by entering the url it loads the content, but if I go through a link on another page it doesn't - only shows the Navigation and Footer from default.vue layout. Not sure what I am doing wrong (or missing)? live demo:…
Tadas Majeris
  • 361
  • 2
  • 4
  • 12
0
votes
0 answers

Is there a way to have music player using Nuxt3?

I am trying to add audio player to my website and i added player: new Audio () to data return but i keep getting this error [nitro] [dev] [unhandledRejection] ReferenceError: Audio is not defined does anyone know what i am doing wrong?? Here is my…
1 2 3
99
100