84 questions
1 vote
0 answers
49 views
Rerender Vue.js 3 Single File Component
I have Vue Single File Component on my page under <discussion-filter></discussion-filter> tag in discussion.blade.php which renders from Laravel controller this way return View::make('...
3 votes
0 answers
189 views
How can I use fallthrough attributes with `strictTemplates: true` in Vue.js?
I am using Vue.js 3 with single-file components, <script setup> and TypeScript. I would like TypeScript to report when I use an unknown component, an unknown directive or an unknown prop. It ...
0 votes
1 answer
68 views
export 'render' (imported as 'render') was not found (module has no exports) - Encore & Vue3 SFC & TypeScript
I'm trying to use TypeScript in my project. If I change a .js file to a .ts file it works. But when I add the lang="ts" attribute in a Vue component (SFC), I get the following error message: ...
1 vote
1 answer
483 views
How to setup rspack with Vuejs SFC to use css modules?
I have a project set up that uses rspack with VueJS 3 and I would like to be able to use CSS modules within the single file components. However I am unable to get this to work and I don't understand ...
1 vote
1 answer
44 views
Accessing element instance inside :class conditional statement in Vue3 SFC
Using a Single File Component, how can the element be accessed during a colon prefixed conditional evaluation like :class I tried doing: <RouterLink to="/post-container" :class="{'...
0 votes
1 answer
83 views
Vue.js 3 SFC multiple lists
I am creating a vue.js3 SFC application where the list component is used multiple times. The aim is to produse a separate lists of items in each component from SingleList.vue. I wanted to use a v-for='...
0 votes
1 answer
215 views
Vue.js 3 SFC passing data to siblings
I am trying to pass a prop between sibling elements (a card and an input) and so far it has not been successful. I have a button nested within a card element. When someone is pressing a button, I emit ...
0 votes
1 answer
74 views
Vue.js 3 SFC Prop
When I use a prop in SFC the prop shows empty, or as you prefer it does not show. I have an ActionButton.vue file: <script setup> defineProps({ actionButtonOne: { type: String } }...
3 votes
1 answer
1k views
How to comment VueJs Single-File-Components
I am writing a VueJs app, using typescript, and have mostly switched to Vue's new script setup syntax for my single file compontents (SFC). I don't know how to write comments that properly show up in ...
0 votes
0 answers
144 views
Passing reactive value from parent to child and accept it in child component
I have an App component, which is a parent component. And two child components, GenreList and GameGrid components. I want to fetch games according to genreId so I'm emitting genreId from GenreList to ...
0 votes
0 answers
979 views
Vue.js 3 and Pinia store filled in async by API
I'm creating an application in Vue.js 3 + Pinia. I created an action that call - async function with await on axios call - an API to fill the whole store for a page, but don't work. Are there any ...
5 votes
0 answers
381 views
How to document Vue Single-File Components that use the Composition API?
Without relying on a third party package, what is the "correct" way to document my Vue 3 Single-File Components using the Composition API in a way that allows an IDE (in my case JetBrains' ...
1 vote
1 answer
484 views
Dynamically adding new .vue component
I am using vue3-sfc-loader (https://github.com/FranckFreiburger/vue3-sfc-loader) to register and load .vue components that works fine: sample 1 <div id="app"> <ae-studio></...
0 votes
1 answer
1k views
Is there a better solution than `v-html` in vue
I have a Vue component. He will show a text array circularly. In the text, some string has a special style. I can use the v-html attribute. Is there a better way? <script setup> import { ref } ...
1 vote
2 answers
438 views
Nuxt 3 & Strapi 4.12 - SFC (script setup) - Update useState inside function using `this` is undefined in build
Environment "@strapi/strapi": "4.12.0", "nuxt": "^3.6.5", Current situation In my development environment, I have a projects page with a category filter that ...