question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incorrect type for registration within VuexORM

See original GitHub issue

Hello.

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:closed
  • Created 5 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
phortxcommented, Aug 17, 2018

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!

0reactions
kiakingcommented, Oct 4, 2018

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found