Category "vue.js"

I get different result from Graphql playground and front-end

I am using graphql and Vue.js and apollo Here is my DateBank const sensorsdb = [ { name: "sensor 1", id: "s-1", timestamp: 1582021371, value:

_vuex.default.store is not a constructor

I'm trying to test a component that uses vuex inside it, I'm trying to pass the store of the respective component so that it can be assembled, but I'm getting t

how to pass screen.height & screen.width in vue test case | Jest Framework

I have used screen.height & screen.width for js operations. I can't able to pass the test case. (code coverage). I am using vue utils - Jest framework. belo

Vue.js—Difference between v-model and v-bind

I'm learning Vue with an online course and the instructor gave me an exercise to make an input text with a default value. I completed it using v-model but, the

Vite and PostCSS issue, Invalid left-hand side in assignment

Everything was working fine, next day I'm getting an error Invalid left-hand side in assignment, the Chrome console tap was showing the error Invalid left-hand

Adding data to line chart (chart.js with Vue.js) results in 'too much recursion' error

I'm using chart.js with vue.js. I have a line-chart and I want to add data (later automatically by SSE). I modified another sample, but the error remains the sa

How to remove the select all option from a v-data-table?

I need to hide the select all option from a v-data-table, the vuetify component. According to the documentation including the header-prop, single-select as true

Components in default.vue get removed after being compiled in Nuxt

I'm trying to add header in my Nuxt app in Nuxt/layouts/default.vue <template> <div> <Navigation/> <Nuxt /> </div> &l

Clearing input in vuejs form

Just completed a todolist tutorial. When submitting the form the input field doesn't clear. After trying both: document.getElementById("todo-field").res

How do I remove a Quasar q-input prop on button click?

I have a quasar q-input element that I want to enable and disable at the click of a button. I have added a button to the input using v-slot:after but I don't kn

Vue can not read property 'extend' of undefined from library

When I dynamicaly load component from library file then i have en error Uncaught TypeError: Cannot read property 'extend' of undefined at Module.fb15 (ind

How to add rtl and ltr to editor-js block options?

Is it possible to implement left,right, center and justified as per the plugin options on adding new block in editor? Sometime we add content in RTL https://ed

How to correctly pass a v-model down to a Quasar q-input base component?

I am using Quasar to build my Vue app and I want to create a base component (a.k.a. presentational, dumb, or pure component) using q-input. I have a created a S

VueJS and FontAwesome Import - Module not found: Error: Can't resolve '@fortawesome/fontawesome-svg-core'

Module not found: Error: Can't resolve '@fortawesome/fontawesome-svg-core' in '/project/src/plugins' Been trying to follow up this tutorial (https://blog.logro

Why is Vue.js Chrome Devtools not detecting Vue.js?

I have the following code with a simple working Vue.js application. But the vue.js devtools is not responding. It was working well a few days ago, now it's not

Nuxt: Generate does not create html for every route in static target

I wish to generate html files for static deployment. The package.json dependencies are as follows "dependencies": { "@nuxt/content": "^1.15.1", "@nuxt

How do I overwrite a v-btn active class in Vuetify?

I am developing a website using Vue.js 2.6.10n with Vuetify 2.1.0 and vue-router 3.1.3. I have a v-app-bar with v-btns to link to my different pseudo pages an

How to append vue.js event to existing html element

Is there any way to append vue.js events to existing html elements? HTML elements: <div class="borrow-button">Borrow</div> <div class="borrow-but

How to use Express with Vue

First time using Node js, Express and Vue. I have a pomodoro timer website made with vue (not vue-app/vue-cli) which I'm wanting to upload to Heroku. The websi

Apply global variable to Vuejs

I have a javascript variable which I want to pass globally to Vue components upon instantiation thus either each registered component has it as a property or it