Skip to content
Advertisement

Tag: vue.js

Vuex-persist throws Uncaught TypeError: s is not a function

Here is my code: I don’t know exactly what the problem is, maybe someone knows how to fix it! it says Uncaught TypeError: s is not a function | vuex-persist.js 1:657 Answer I ran into a similar issue recently as well. It seems to me that the newest build is unstable and is causing this issue. If you’re updating directly

Programmatically instantiate vuetify-components

I am trying to programmatically instantiate vuetify-components and add them to the DOM. With simple components like a v-card or v-dialoge it works fine, but it does not work with v-data-tables. I created a codesandbox to showcase the problem: https://codesandbox.io/s/throbbing-butterfly-4ljhx?file=/src/components/MainWindow.vue Look at the errors in the console when clicking the button to add a Table. Can anyone help me out

Nuxt + Vuex + Computed Property

I am currently trying Nuxt.js with Vuex. And I Built a simple form, where I have an email field, a password field and a button. All my state, mutations and actions are working as they should be. But When I created a computed property just to validate the password, I always have an error with an if statement to validate

Rails vuejs get height of iframe element

I am using vuejs with rails webpacker and turbolinks. I want to calculate the correct height of the iframe element on the initial page load. Currently, I am getting the height of the element when I manually refresh the page, and when someone navigates from any other pages to the page where the iframe element is located, the height of

Adding HTML element to a vue template

I’m using a chart component (Chartist) that requires a HTML element to use as a parent when rendering the SVG. The elements that the chart can use is generated during a v-for loop, which means that they are not added to the DOM at the time of the chart rendering. The code looks something like this (in the vue): In

Advertisement