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

All Questions

Tagged with
0 votes
0 answers
19 views

Why do I have this execution sequence in a Vue 3 program?

I am working on a project with Vue 3, Vuetify 3 and Pinia. Out of simple curiousity, I put a console.log() statement at the start of the following files in my project: main.ts, App.vue, Tracker.ts (my ...
Henry's user avatar
  • 1,611
0 votes
2 answers
42 views

How to properly use Pinia store in root vue component?

My main.ts: import './assets/tailwind.css' import './assets/wordpress.css' import { createApp } from 'vue' import { createPinia } from 'pinia' import App from './App.vue' import router from './...
Simao Gomes Viana's user avatar
0 votes
0 answers
40 views

How to retrieve the Pinia Store State variable globally in Vue3?

I'm trying to access the Pinia Store State variable from another component (coming from my Websocket Server). Inisde the Store, the message comes up correctly. However, when I try to reference the ...
Josh's user avatar
  • 25
0 votes
0 answers
18 views

Create a route (Laravel 10 - Nuxt 3 )

[nuxt] error caught during app initialization Error: Page not found: /password-reset/46f9fe46fc92949ec48113486813cdd5f03add89f6d9cae0a983c2511a863097?email=ospreystudio2020@gmail.com link that needs ...
Vadim Yanyushkin's user avatar
2 votes
1 answer
72 views

[Vue warn]: Failed to resolve component: UserBasket

I ran into an issue that had me scratch my head for a few days now. I am doing a application with vuejs3 frontend. For all the code I provide I removed the most other code and kept what I think is ...
Tarakos's user avatar
  • 23
1 vote
0 answers
50 views

i use Vuexy template that is build on vite vue3 and vuetify and i use pinia store, i want to add SSR to my project

the problem is that i get errors in localStorage and window being undefined in all my pages like themes, plugins and etc and my project is considered as a middle-large sized one so i can't update my ...
tareq safia's user avatar
0 votes
1 answer
317 views

Cannot read properties of undefined (reading 'Vue') at initBackend, how can i solve this error?

I’m working on a Vue 3 application using Pinia for state management, and I’m encountering an issue where added messages are not rendering on the screen. Additionally, I’m getting a persistent error in ...
HYEIN YU's user avatar
1 vote
1 answer
71 views

VueJS 3.4 - Computed value to get from two sources but set in one

The logic in my app is to fetch some array of objects from API with @tanstack/vue-query, update some of those objects and send a patch request only for the updated objects. So I created an empty array ...
pashata's user avatar
  • 348
1 vote
1 answer
63 views

How can you update a floating-vue dropdown popup in Vue3?

I am using Vue3, Pinia and the floating-vue library. I am trying to dynamically create a popup at a position which depends on other elements that may move in the viewport. For this I place a dummy div ...
FChris's user avatar
  • 338
0 votes
1 answer
55 views

Computed is still dirty after getter evaluation, with dependency being set asyncronously

I have a pinia store which loads data on demand from a database (specifically Firestore, but I don't think it matters). When the data is queried, it sets a value into a reactive Map ({ id: <id>, ...
Alpvax's user avatar
  • 153
0 votes
1 answer
113 views

Can't access useRuntimeConfig or useNuxtApp in pinia store in nuxt 3

I have a nuxt 3 project in which I cannot reference process.env. Apparently we have to do it differently for this nuxt version, variables must be declared in nuxt.config - this is my nuxt.config.js ...
Amadeo de la Peña's user avatar
0 votes
1 answer
73 views

How do I fix Typescript error 2307 "Cannot find module" when importing a type?

I am revising an existing a Pinia store in a Vue 3 project to use Typescript rather than JavaScript and have managed to get rid of all of my squiggly lines, partly through the use of a type called ...
Henry's user avatar
  • 1,611
0 votes
0 answers
43 views

How do I make this statement pass Typecript rules?

I'm new to Typescript and am trying to add Typescript checking to an existing Pinia store in a Vue 3 project. All is going well except for a Javascript reduce function that Typescript is flagging but ...
Henry's user avatar
  • 1,611
0 votes
1 answer
34 views

Handling form input fields with Vue Composition API and Pinia store, can all v-model variables be organized into a single object?

I am using Vue3 with the Composition API and Pinia. When building a form component with various input fields, I've been handling it like this example, where each input is assigned it's own variable (...
slim.mckins's user avatar
0 votes
2 answers
51 views

Pinia state loosing reactivity when used in an object?

Trying to wrap my head around reactivity when it comes to states from a Pinia store. I have the following store (@/stores/settings.js): import { defineStore } from 'pinia' export const useSettings = ...
s427's user avatar
  • 1,546

15 30 50 per page
1
2 3 4 5
31