Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
1 vote
0 answers
58 views

Nuxt 3 With Vite Production Issue: Works in Development but Not in Production

I'm experiencing an issue with my Nuxt 3.6.5 application. The app runs perfectly with npm run dev, but when I build and start it using npm run build and npm run start, it doesn't work as expected. ...
Viggy's user avatar
  • 11
0 votes
0 answers
12 views

Nuxtjs error - Do not mutate vuex store state outside mutation handlers

I'm using vedraggable, so I have two draggables on the page, one to clone and the other that just receives the clone. The draggable that receives has a @change, calling a method that changes a vuex ...
GobsRuiz's user avatar
  • 512
0 votes
0 answers
72 views

Nuxt module should be a function: mande/nuxt

I run my project using pnpm run dev -o, it gives me an error telling  Nuxt module should be a function: mande/nuxt I installed mande by using npm install mande and added it as a build module as well ...
Madusha Prasad's user avatar
0 votes
1 answer
613 views

How to use VueX 4 in nuxt 3 project

I am fairly new to Vue, but had started my project in Vue 3 when after I realized that I wanted to optimize for SEO, so I decided to move to Nuxt. However I have found it a bit challenging to move my ...
DistastefulFrog's user avatar
0 votes
0 answers
124 views

How to fetch data when store is initialized?

I have a simple store that gets its data by fetch: export const useCatStore = defineStore('cats', { state: () => ({ cats: [], pending: true, error: undefined, }), actions: { ...
Mick's user avatar
  • 8,783
0 votes
0 answers
36 views

Modify Vuex store by Cypress

I have to test a page via Cypress, the page using data from Vuex store to initialize itself. The problem is that the store updates in the previous page, so I don't have the data set. Example store: ...
Serhii Iliushenko's user avatar
1 vote
0 answers
387 views

Use vuex (v3) together with composition-api in nuxt-bridge

I have upgraded a nuxt 2 project to nuxt-bridge and I have to rewrite some components. I want to use the (core) vue composition api and my old vuex store. I've had things like: import { mapActions, ...
Merc's user avatar
  • 4,482
0 votes
1 answer
200 views

How to add Vuex 3 for Vue 2,7?

When I run: yarn create nuxt-app I see in package.json that I have: "dependencies": { "nuxt": "^2.15.8", "vue": "^2.7.10", }, I need to use ...
Billal Begueradj's user avatar
0 votes
0 answers
37 views

How to resolve API data being fetched using Vue and Vuex

im having some problems regarding vue (vue2) when i try fetching data from an api and it returns undefined whenever i try to accesss the data from the component, but the data is visible whenever i ...
George Marwanqana's user avatar
0 votes
1 answer
30 views

Access vuex store getter in nuxt data

I need to set up some data in one of my pages in a Nuxt app but that data depends on the value of a variable that I am getting via a getter from my vuex store. Why can't I do it like this? export ...
bodger's user avatar
  • 1,182
1 vote
1 answer
35 views

How to visualize the initial array when search input by title is empty again?

After searching in the input field a todo item by title, and than making the search input empty I'm expecting to get rendered the initial array of todos once again. I tryed to achieve it with if ...
user avatar
1 vote
1 answer
48 views

unshift a new item in the store fake api array

I'm expecting to visualize a new task todo title at the top of the tasks array after clicking the Add. button. I'm doing it with POST request fake API, but having the error 404 and I can't see the ...
user avatar
0 votes
1 answer
46 views

How to add a new Task into the parent component array?

I'm expecting to add a new task object and visualize it in the parent component array by clicking the Add button. But I'm havingg an error newTask is not defined. Even though I'm forming the newTasks ...
user avatar
0 votes
0 answers
54 views

Vue Nuxt: How to make dynamic routes in Nuxt

Im new to vue and nuxt but i will use it with a node backend that has this route to the product section (im making a ecommerce), that its almost working 100% (the page parameter i didnt try to ...
Pedro Souza's user avatar
0 votes
1 answer
55 views

NuxtJS computed property running only on navigate

component <script> import { mapState } from 'vuex'; export default { layout: 'index', /** * Run State Dispatches */ async fetch({store}) { store.dispatch('...
Charlotte Wells's user avatar

15 30 50 per page
1
2 3 4 5
54