ktsn / vuex-class

Binding helpers for Vuex and vue-class-component
MIT License
1.73k stars 86 forks source link

Errors after updating to TypeScript 2.7.1 #17

Closed tbsvttr closed 6 years ago

tbsvttr commented 6 years ago

Every usage of vuex-class causes the error Property 'xxx' has no initializer and is not definitely assigned in the constructor. after updating TypeScript from 2.6.2 to 2.7.1.

ktsn commented 6 years ago

Please read TypeScript 2.7 features. You need definite assignment assertions since decorated properties does not have initializers. https://blogs.msdn.microsoft.com/typescript/2018/01/31/announcing-typescript-2-7/#stricter-class-property-checks

tbsvttr commented 6 years ago

Thanks @ktsn! While I could fix this issue new ones arrived in combination with an already known bug in vue-test-utils. https://github.com/vuejs/vue-test-utils/issues/73