Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

211
Views
Object(...) is not a function with vuetify

sorry for my english.

I am developing an app on Nuxt + vuetify.

I want to use the store, but I have an error message. I searched on web, but no results work.

My code in store

import { createStore } from 'vuetify';
// import createStore from 'vuex';

const store = createStore({
    state: {},
    mutation: {},
    actions: {
        createAccount: ({ commit, userInfos }) => {
            commit;
            console.log(userInfos);
        }
    }
})
console.log(store);

export default store;

My error message

TypeError Object(...) is not a function

If you need more information, feel free to ask.

Thanks for your help

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Thanks, It ok.

My code

// I saw this way is deprecated, and that would be delete in Nuxt3

import Vuex from 'vuex'

const createStore = () => {
    return new Vuex.Store({
        state: () => ({}),
        mutations: {},
        actions: {
            createAccount: ({ commit }, userSignUp) => {
                commit;
                console.log(userSignUp);
            }
        }
    })
}

export default createStore

about 4 years ago · Juan Pablo Isaza Report

0

you can check this sample, perhaps it can solve your problem

import Vuex from 'vuex'

const createStore = () => {
  return new Vuex.Store({
    state: () => ({
    }),
    mutations: {
    },
    actions: {}
  })
}

export default createStore

read more from here

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!