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
Tag: vue.js
Search input using a query using Vuex and Axios
I’m trying to make a search input where I input a query and that query gets added to the API call and returns me the data that I want, here’s a sample of my code My JS: My vuex module: The search query is not getting passed on the input, if I put something on the query from the Vuex
Is there a way to shorten defining v-model data, Vue.js and Laravel
On my edit page of CRUD project, I have a code that fills the form with values of which record is being edited. I use v-model to define HTML inputs, but the code seems too long. I get the data from the prop, and fill the v-model. My code that fills v-model The way I get the data using prop:
The specified value does not conform to the required format, “yyyy-MM-dd”. Vue.js
I’m trying to put current date of the record to my input type=”date” field. Strings works perfectly, they all go to form when I click the button, except date. My input type is date on the form. And I need to add the date as value to that. That is how I’m currently trying: this.birth_date = student.birth_date; But the date
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
Vue: Removing item from v-for list leaves behind canvas item
This is a hard one to phrase in a title, but pretty easy to explain with some setup. I have a list of components. Each component in the list looks like the following: Each component has a small canvas element that is used to display a preview of the item, It’s name, and a delete button to remove it from
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
Passing a prop as a prop to another component using vue router-link
I have a component that takes a list of recipes and creates a component for each item in the array. I am trying to pass the recipe object to a component and then to a second component using Router-Link Inside the RecipeCard component looks like this: I am trying to pass the recipe to another component so when the recipe