Incorrect type for registration within VuexORM
See original GitHub issueHello.
I’m trying to use this plugin but when I try to register it in VuexORM the type of VuexORMGraphQL is not Plugin.
import VuexORM from '@vuex-orm/core';
Vue.use(Vuex);
const database = new VuexORM.Database();
database.register(Answer, answers);
database.register(Question, questions);
import VuexORMGraphQL from '@vuex-orm/plugin-graphql';
VuexORM.use(VuexORMGraphQL, { database });
Argument of type 'typeof VuexORMGraphQLPlugin' is not assignable to parameter of type 'Plugin'.
Types of property 'install' are incompatible.
Type '(components: Components, options: Options) => VuexORMGraphQL' is not assignable to type '(components: Components, options: Options) => void'.
Types of parameters 'options' and 'options' are incompatible.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Defining Models | Vuex ORM
The argument is the default value that will be used when instantiating the model class. In Vuex ORM, the field type such as...
Read more >Error when importing database from different package #388
Hi, I have a lerna monorepo and I'm putting all model logic into one ... foo-nuxt/plugins/vuex-orm.js import VuexORM from '@vuex-orm/core' ...
Read more >Vuex ORM model constructor issue on insert - Stack Overflow
as I can see you are missing the registration of the model in the database at the beginning of the application.
Read more >vuex-orm - npm
Vuex ORM lets you create "normalized" data schema within Vuex Store with relationships like any other usual ORM library. It also provides fluent ......
Read more >Props | Vue.js
This not only documents your component, but will also warn other developers using your component in the browser console if they pass the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
No problem at all!
I’ve tried to implement the Plugin interface, but I think the interface is wrong 🤔 I’m talking with @kiaking to resolve that issue.
Stay tuned!
Now this should be fixed with Vuex ORM 0.26.3 🎉 Sorry for taking so long! https://github.com/vuex-orm/vuex-orm/releases/tag/v0.26.3