Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
54 views

Problem: I’m migrating a Vue 2.6 app to the Composition API (via the plugin) and hit two testing issues with vue-test-utils (v1) + Jest: Jest couldn’t mock functions from a plain TS module (not a Vue ...
Makc's user avatar
  • 1,192
371 votes
14 answers
427k views

is this possible to pass parameter in computed properties in Vue.Js. I can see when having getters/setter using computed, they can take a parameter and assign it to a variable. like here from ...
Saurabh's user avatar
  • 73.8k
2 votes
0 answers
48 views

I am using the infinite scroll with Vue 3 and InstantSearch(Algolia) but the <ais-search-box placeholder="Search here…" class="searchbox" /> it should be in a different ...
Luis's user avatar
  • 467
371 votes
16 answers
227k views

How to remove hashbang #! from url? I found option to disable hashbang in vue router documentation ( http://vuejs.github.io/vue-router/en/options.html ) but this option removes #! and just put # Is ...
DokiCRO's user avatar
  • 4,715
137 votes
18 answers
223k views

Simply put, vscode is showing this error in a module: Cannot find module '@/components/SidebarToggleIcon' But no such error shows up during compilation. This is a VueJS project and SidebarToggleIcon ...
Douglas Gaskell's user avatar
1 vote
0 answers
159 views

I have a vue.js component with a toolbar that contains three sections: actions, filters, and search with buttons. The current implementation uses CSS breakpoints to control layout ordering, but this ...
Egorallo's user avatar
0 votes
1 answer
56 views

When writing a Vue.js component, the following code: const mealIcon = (meal: string): string => { switch (meal) { case "lunch": return 'ic:outline-lunch-dining' case "...
WoJ's user avatar
  • 30.6k
0 votes
0 answers
56 views

I inherted an app that was delpoyed on heroku with a git repo with a ruby backend and vue.js front end. I am completly at a loss trying to figure this matter out the backend depolyed perfectly but i ...
Distinct Projects's user avatar
0 votes
0 answers
30 views

PrimeVue offers a convenient way to work with an InputGroup, like: <InputGroup> <InputGroupAddon> <i class="pi pi-user"></i> </InputGroupAddon> ...
willeM_ Van Onsem's user avatar
2 votes
1 answer
191 views

I'm getting this error when I use useNewSession.ts composable in my Nuxt middleware. [nuxt] A composable that requires access to the Nuxt instance was called outside of a plugin, Nuxt hook, Nuxt ...
link's user avatar
  • 144
235 votes
19 answers
247k views

I have a simple input box in a Vue template and I would like to use debounce more or less like this: <input type="text" v-model="filterKey" debounce="500"> However ...
MartinTeeVarga's user avatar
1 vote
1 answer
55 views

I’m running into an issue with my AWS Amplify-hosted website, which is built using Vue 3 and Vite. When I load the main page (e.g., https://url.de/) and navigate to sub-pages (e.g., https://url.de/...
dennis_10-33's user avatar
259 votes
17 answers
542k views

I am trying to set query params with Vue-router when changing input fields, I don't want to navigate to some other page but just want to modify URL query params on the same page, I am doing this: this....
Saurabh's user avatar
  • 73.8k
263 votes
16 answers
90k views

I just used the command line (CLI) to initialize a Vue.js project. The CLI created a src/components and src/views folder. It has been a few months since I have worked with a Vue project and the ...
drsnark's user avatar
  • 3,073
0 votes
3 answers
2k views

I want to associate TailwindCSS syntax interpretation with .vue (or Svelter / Astro) files so that the VSCode doesn't show errors for TailwindCSS directives in the <style> section, which would ...
rozsazoltan's user avatar
  • 18.2k
0 votes
1 answer
227 views

I'm working in a Vue monorepo with a custom UI package. I want to use the Sonner toast component (vue-sonner v2) following the official shadcn-vue guide. I've set everything up without any import ...
Giacomo Brunetta's user avatar
146 votes
10 answers
127k views

I am using Vuetify's datatable, we have different slots with some props for example below <template #header.data-table-select="{ on, props }"> <v-simple-checkbox color="...
Dhiraj Wakchaure's user avatar
346 votes
17 answers
388k views

Let's say I have a main Vue instance that has child components. Is there a way of calling a method belonging to one of these components from outside the Vue instance entirely? Here is an example: ...
harryg's user avatar
  • 24.2k
-2 votes
1 answer
73 views

I'm not able to use the date module in my CMS because of the historic dates (many are before the common era), I want to use numbers (this provides me with a correct sorting of the items); so when I ...
Keston Pollard's user avatar
302 votes
13 answers
163k views

What is the main difference between a method and a computed value in Vue.js? They seem the same and interchangeable to me.
Bootstrap4's user avatar
  • 3,831
0 votes
1 answer
97 views

After updating from Tailwind v3 to v4, some Tailwind layer classes are added twice causing unwanted overrides, for example when I inspect element's computed styles in Chrome: The redundant .text-...
van_folmert's user avatar
  • 4,599
249 votes
12 answers
301k views

On my main page I have dropdowns that show v-show=show by clicking on the link @click = "show=!show" and I want to set show=false when I change the route. Please advise me on how to realize ...
kipris's user avatar
  • 3,055
197 votes
17 answers
149k views

Is there a way to only display a slot if it has any content? For example, I'm building a simple Card.vue component, and I only want the footer displayed if the footer slot has content: Template <...
Steve Bauman's user avatar
  • 8,768
0 votes
2 answers
222 views

I have a Single Page Application (SPA) built with Vue.js and deployed to Azure App Service (Linux). This app communicates with a backend .NET Web API, also deployed to Azure App Service. I've ...
devram's user avatar
  • 155
215 votes
14 answers
407k views

I've been reading the official docs and I'm unable to find anything on environment variables. Apparently there are some community projects that support environment variables but this might be overkill ...
Edgar Quintero's user avatar