nuxt-community / nuxt-property-decorator

Property decorators for Nuxt (base on vue-property-decorator)
https://github.com/kaorun343/vue-property-decorator
MIT License
400 stars 34 forks source link

Subsequent property declarations must have the same type. Property '$store' must be of type 'Store<any>', but here has type 'Store<any>' #74

Closed matteotrapani closed 4 years ago

matteotrapani commented 4 years ago

Hi there,

I have the following error when building my application(nuxtJS in typescript) with the latest version of this package(2.7.2)

ERROR in D:/development/coronaresponse/node_modules/nuxt-property-decorator/node_modules/vuex/types/vue.d.ts(16,5): 16:5 Subsequent property declarations must have the same type. Property '$store' must be of type 'Store', but here has type 'Store'. 14 | declare module "vue/types/vue" { 15 | interface Vue { 16 | $store: Store; | ^ 17 | } 18 | } 19 |

This is a fatal error which breaks production build. I have the same error when running in development mode(but the app works smoothly).

I downgraded the package to the previous version(2.7.1) and everything works fine.

Thank you for your help and great package!

husayt commented 4 years ago

released 2.8.3 which hopefully resolves this. Reopen pls if still happens