You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { Model } from '@vuex-orm/core'
export default class User extends Model {
static entity = 'users'
static fields() {
return {
id: this.number(null),
/******/
}
}
Error:
Uncaught (in promise) Error: No such model user!
at Context.getModel (vuex-orm-graphql.esm.js?410d:14923)
at Function.getModelFromState (vuex-orm-graphql.esm.js?410d:15384)
at Function.call (vuex-orm-graphql.esm.js?410d:15504)
at Array.wrappedActionHandler (vuex.esm-browser.js?5502:809)
at Store.dispatch (vuex.esm-browser.js?5502:484)
at Store.boundDispatch [as dispatch] (vuex.esm-browser.js?5502:369)
at Function.Model.dispatch (vuex-orm.esm.js?0937:2689)
at Function.model.fetch (vuex-orm-graphql.esm.js?410d:15493)
at _callee$ (HelloWorld.vue?fdab:110)
at tryCatch (runtime.js?96cf:62)
The text was updated successfully, but these errors were encountered:
t2thec
changed the title
No such model
Error: No such model
Aug 12, 2020
Hi, thanks for the awesome package.
I can't seem to fetch a model. I keep getting 'No such model' error. However, I think I have things set up OK.
Is this package Vue3/Vuex4 compatible? Can you see where I have screwed up?
Thanks in advance!
database.js
store.js
HelloWorld.vue
User.js
Error:
The text was updated successfully, but these errors were encountered: