After successfully using vue-class-component in my project, I decided to introduce a new component for production only:
import store from '../store/Index'
let storeTmp = process.env.NODE_ENV === 'production' ? store : null
@Component({
components: {
vue2Dropzone
},
vuetify,
storeTmp
})
However, upon implementation, I encountered the following error:
Argument of type '{ components: { vue2Dropzone: any }; vuetify: Vuetify; storeTmp: Store<...> | null; }' is not assignable to parameter of type 'VueClass'. Object literal may only specify known properties, but 'components' does not exist in type 'VueClass'. Did you mean to write 'component'?
Does anyone know how to resolve this issue?