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.

Linting Error after vuex and vuex-module-decorators upgraded

See original GitHub issue

After upgrading vuex to 3.1.0 I am receiving the following linting error even though node_modules is excluded and no other node module reports any warnings or error:

ERROR in .../node_modules/vuex-module-decorators/dist/types/vuexmodule.d.ts
2:46 Type parameter defaults can only reference previously declared type parameters.
    1 | import { ActionTree, GetterTree, Module as Mod, ModuleTree, MutationTree, Store, ActionContext } from 'vuex';
  > 2 | export declare class VuexModule<S = ThisType<S>, R = any> implements Mod<S, R> {
      |                                              ^
    3 |     static namespaced?: boolean;
    4 |     static state?: any | (() => any);
    5 |     static getters?: GetterTree<any, any>;

Any ideas why this would happend out of nowhere?

::EDIT:: Looks unrelated to the upgrade. Downgrading doesn’t remove the error. Looks to be related to my usage of it. I’ll continue to debug. Just strange since it is an exclude directory.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:10
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
championswimmercommented, Feb 12, 2019

v0.9.8 is compatible with latest Tyescript 😃 please upgrade

4reactions
MantasPauliukoniscommented, Feb 4, 2019

I’ve started to get this error after upgrading typescript from 3.2.4 to 3.3.1. Currently reading the changelog, it doesn’t seem to indicate any changes in generics. Possibly it was one of the bugfixes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

vue.js - Component's property is not updated when using vuex ...
When a mutation in MyModule sets property prop1, the corresponding property in the component does not get updated. I checked, mutation is called ......
Read more >
How We Refreshed Our Vue 2 JavaScript Codebase ... - Medium
To write a Vue component in TypeScript, we went for an external TypeScript file: Also, Vue linting is upgraded from essential to the...
Read more >
vuejs Archives - N47
Today I would like to show you a very useful tool written in TypeScript that can boost your productivity with Vuex: vuex-module-decorators.
Read more >
How to set up and code Nuxt.js apps fully in TypeScript
To create a Vuex store with TypeScript decorators, we'll use a popular library called vuex-module-decorators . You'll also need a library called ...
Read more >
vuex-module-decorators - npm
Decorators to make class-like Vuex modules. Latest version: 2.0.0, last published: a year ago. Start using vuex-module-decorators in your ...
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