Skip to main content

All Questions

0 votes
1 answer
791 views

How do I properly use Nuxt emit?

I am trying to develop vue.js application, but recently faced a problem using emit function. The thing is that event successfully sends at child component, but it never appears at parent component. ...
SYKO's user avatar
  • 71
0 votes
2 answers
1k views

Load more button with useFetch (concatenate old and new array)

I have a computed URL property. const params = ref<any>({ pagination: { page: page.value, pageSize: pageSize.value, }, populate: "*", }); const url = computed(()...
7ziip's user avatar
  • 47
0 votes
0 answers
322 views

Can't set element's scrollLeft properties in VueJS

I'm actually coding an infinite slider in vuejs (using Nuxt 3 RC.10) and I'm facing a problem : my scrollLeft don't want to be reset. Let me explain. I got two rows of images, and when the left side ...
Jocabin's user avatar
  • 13
1 vote
1 answer
2k views

Vue 3 Composition API - Computed child component not updated when props has changed in parent

I'm using Nuxt 3 and Vue 3 in my stack. I want my component changed based my parent state value. but the problem is only my state value changed then the computed in child component is not updating. I ...
Imboyo's user avatar
  • 67
0 votes
0 answers
2k views

Html not loading properly, nuxt 3 onMounted

I am having trouble with an implementation of Nuxt 3 and Threejs. <template> <div> <canvas ref="webgl" class="canvas"></canvas> </div> </...
Mattia Peiretti's user avatar
0 votes
0 answers
19 views

How can I import runtime config in Nuxt without using useContext [duplicate]

I'm trying to import a public $config file without using useContext hook in nuxt composition API. According to Nuxt3 official document, we are able to import config file without using useContext hook. ...
Mert's user avatar
  • 554
2 votes
0 answers
1k views

nuxtjs/composition-api - Module is undefined on composable file

I'm using @nuxtjs/composition-api in my Nuxt application with Vuetify. I have a composable file like this: // composables/dialog.js // https://www.npmjs.com/package/vuetify-dialog import { useContext }...
Marcelo The Mage Coder's user avatar
0 votes
1 answer
2k views

Nuxt Composition API, updating 'state', not reflected on UI Template

I had a Nuxt.js application working with the options API. And with the new Nuxt3 coming out, I was trying to migrate things over to the supposedly 'better' alternative. So far i've had nothing but ...
Justin's user avatar
  • 2,530
0 votes
0 answers
192 views

Vue - Best way to loop through multiple custom components with different types of inputs and binding dynamic v-model data

I have a custom component which has 4 different inputs - CustomNumberInput1 CustomNumberInput2 Checkbox1 Checkbox2 "CustomNumberInput" is another simple custom component which just creates a ...
Craig's user avatar
  • 31
1 vote
1 answer
661 views

Composition API arrow function is not recognized in Nuxt js

I am using the Nuxt Composition API and trying to render the elements in getList to my page. When I load the page I get an error saying that "_vm.getList is not a function". <template>...
el_M's user avatar
  • 159
0 votes
2 answers
3k views

Use lodash in Nuxt with Composition API

I'm trying to use lodash with Nuxt2 Composition API (https://composition-api.nuxtjs.org/) However, with useContext() I'm not able to find any global Vue prototype functions. So when I tried it by ...
kirtan403's user avatar
  • 7,451
3 votes
1 answer
6k views

Composition API with Nuxt 2 to get template refs array

I'm trying to get the array of element refs that are not in v-for. I'm using @nuxtjs/composition-api on Nuxt 2. (Truth: I want to make an array of input elements, so that I can perform validations on ...
kirtan403's user avatar
  • 7,451
3 votes
2 answers
4k views

How to use $axios Nuxt module inside of setup() from composition API?

The docs say to use this.$axios.$get() inside of methods/mounted/etc, but that throws TypeError: _this is undefined when called inside of setup(). Is $axios compatible with the composition API? To ...
Mrweiner's user avatar
  • 521
0 votes
0 answers
254 views

Cannot access Refs methods from parent component

I have a class component that I use in another parent component. I'm trying to call a method in the child component from the parent component. I'm getting a typeerror saying that the method I am ...
Affiq Zaini's user avatar