108,132 questions
0
votes
1
answer
84
views
Chart.js Stacked Horizontal Bar Char Leading White Space
I'm using Chart.js in a Vue 3 application. I have this thing just about wrapped up with how I want it. However, there is this small white gap before the start of the graph as it is drawn that I cannot ...
0
votes
0
answers
49
views
Vue app Replaces Razor pages rendered content
By all means this should be a simple setup. I have read the docs and there are couple of examples in internet how to do this. But somehow my code doesnt work. Can someone please help me to spot the ...
0
votes
0
answers
51
views
Quasar SPA - SCSS Error: "This file is already being loaded" when importing quasar.variables.scss
I'm working on a Quasar SPA project and running into a persistent issue. I get this error from Vite/Sass:
[vite:css] This file is already being loaded.
1 │ @import 'src/css/quasar.variables.scss';
It ...
0
votes
0
answers
58
views
Regarding the issue of merging multiple Setups in vue
In vue2, when other developers have already written a setup and I define another setup in the mixin, an error will occur at this moment.
import mixinFile from './mixinFile'
export default {
nane: '...
1
vote
1
answer
395
views
Suppress 'would you like to install any of the official modules' when using npx nuxi@latest init
I'm attempting to create a basic Nuxt app using the following:
npx nuxi@latest init my-project --packageManager npm --gitInit false --force
I'm using npx to automate the setup of the project so I don'...
0
votes
1
answer
103
views
Vue, React, Svelte + Vite + typescript with absolute paths
I created a Vue / React / Svelte + Typescript + Vite project using:
npm create vite@latest
and have the following files in my project:
...
tsconfig.app.json
tsconfig.json
tsconfig.node.json
vite....
0
votes
1
answer
59
views
Vue Test Utils on async component always returning empty/undefined
I am updating my project from Vue 2/Nuxt 2 to Vue 3/Nuxt 3. As i've been doing this my tests have broken and i'm trying to resolve them but every way I try to shallowMount my component returns an ...
0
votes
0
answers
48
views
Vue.js project in Visual Studio 2022 - build command not executed
I created a sample Vue.js project in Visual Studio 2022. Everything worked fine until I changed default Node.js server to my custom web server.
I edited launch.json, added build: {sourcemap: true} to ...
0
votes
1
answer
55
views
Obj and Array value Imports in Nuxt 3 I18n don't work
I'm trying to add docsList as a Card List but when I fetch single item from locales/en.json, it's return but when I fetch more than 1 items "like repeater" ,
It's said browser.mjs:48 ssr:...
0
votes
0
answers
25
views
How to show selected item count instead of listing items in vue-multiselect multiple mode?
I'm using vue-multiselect in multiple mode and it works great.
However, when multiple options are selected, it shows a list of all selected items inside the input area, which can be overwhelming if ...
0
votes
2
answers
222
views
How to implement HSTS (Strict-Transport-Security) in a Vue.js SPA hosted on Azure App Service?
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 ...
2
votes
1
answer
122
views
How do I parse text from my front-end into R?
I'm building a Vue app that uses R for the back-end. I was able to successfully pull in data from a form into R. I'm using the plumber library. However, I don't know how to parse text.
Here is the R ...
0
votes
0
answers
87
views
Vue Component vue-office-excel doesn't work
I'm a new to code vue page. I want to use vue-office-excel component in my Vue page, it can show an excel file on my page. My vue script is like this.
index.vue:
<template>
<vue-office-...
0
votes
0
answers
60
views
Ton Connect (@townsquarelabs/ui-vue) infinite list loading
I have a Telegram Web App project on Vue3 with the TON wallet connection (@townsquarelabs/ui-vue)
When I clicked on the “Connect Wallet” button, a list of available wallets used to appear and ...
0
votes
0
answers
27
views
i18next-vue won't able to update the component language
const mountFooter = async (currentLanguage = 'zh') => {
const wrapper = mount(TheFooter, {
global: {
plugins: [[I18NextVue, { i18next: testI18n }]],
},
});
...
0
votes
0
answers
43
views
vue dynamic route matching with params issues are memory leak and multiple events fired
I have dynamic routes in my router where I load different content depending on the id params, the problem is that as I visit pages without refreshing the page the memory usage starts to increase with ...
-2
votes
3
answers
69
views
Vue3: use a `ref` conditionally
Is this code ok?
const { label } = defineProps<{label?: string}>()
const labelTransformed = label ? computed(() => {
// transform the label
}) : 'default label'
Then, in the template:
<...
0
votes
1
answer
97
views
$t is not a function with dynamic component and render function [closed]
I have a problem when importing with defineAsyncComponent and using render function
Here is parent template
<template>
<div id="Widget"></div>
<button @click=&...
0
votes
0
answers
218
views
Failed to resolve Vuetify component imports in Nuxt 3.17.2
I'm getting the following error when running my Nuxt application (version 3.16.0+):
[plugin:vite:import-analysis] Failed to resolve import "vuetify/lib/components/VExpansionPanel" from "...
1
vote
1
answer
134
views
PrimeVue how to listen to emits?
I have this piece of code with the Galleria component of PrimeVue.
<PrimeGalleria @update:visible="onVisible()" :value="images" v-model:visible="isZoomed" :...
0
votes
2
answers
148
views
Convert Laravel routes with params in a vue template component
I am converting a php website to vue js. I am stuck on how to convert the route helpers (with params) to a vue component. I still need the routes to point to laravel routes.
<template>
<a ...
-1
votes
1
answer
65
views
How to validate autocomplete suggestion for API request
I am using Placekit for the forward geocoding and so far it works good, but I have an issue with the autocomplete. When I click on the suggestion from the autocomplete dropdown, it does not use this ...
0
votes
0
answers
36
views
Webpack acts wrong and cant serve project
I have very strange problem. I have project on Vue 2.7 (Vue-cli), Node 20.11.0. This project works fine without any problem.
I created new another project on Vue 3.5/Vite and I upgraded node to 22.15....
1
vote
1
answer
30
views
Global Data Flow Issue
On Vue-based environment, global products item state is declared to be used in products list component, and other components like navbar for categories dropdown:
import axios from "axios";
...
-1
votes
1
answer
138
views
Use AWS Amplify UI in View without backend and without bloating app
I have an AWS CloudFormation stack that sets up a Cognito user pool and user pool app. I created a simple Vue front end and I'm experimenting how to authenticate it using Cognito. I understand I can ...