Linting Error after vuex and vuex-module-decorators upgraded
See original GitHub issueAfter 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:
- Created 5 years ago
- Reactions:10
- Comments:8 (2 by maintainers)
Top 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 >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
v0.9.8 is compatible with latest Tyescript 😃 please upgrade
I’ve started to get this error after upgrading
typescript
from3.2.4
to3.3.1
. Currently reading the changelog, it doesn’t seem to indicate any changes in generics. Possibly it was one of the bugfixes.