You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to add a 3rd party component to the components object of the @component decorator, because the 3rd party vue object does not extend from Vue (its a plan es5 component) I get a typescript error.
import Vue from 'vue';
import { Component } from 'vue-property-decorator';
import { IAuthService } from 'interfaces';
import { lazyInject } from '../../kernel';
import { INJECTION_TYPES } from '../../injection-types';
import Icon from 'vue-awesome/components/Icon.vue';
import 'vue-awesome/icons/eye';
@Component({
components: {
MenuComponent: require('../navmenu/navmenu.vue'),
Icon
}
})
export default class AppComponent extends Vue {
@lazyInject(INJECTION_TYPES.AuthService)
private _authService: IAuthService;
signin() {
this._authService.signIn();
}
}
Any recommendations on how to get past this issue? Otherwise seems like a common problem that most 3rd party component developers are only coding to es5 standards.
Thanks
The text was updated successfully, but these errors were encountered:
I am trying to add a 3rd party component to the components object of the @component decorator, because the 3rd party vue object does not extend from Vue (its a plan es5 component) I get a typescript error.
3rd party lib: https://github.com/Justineo/vue-awesome
Component
Any recommendations on how to get past this issue? Otherwise seems like a common problem that most 3rd party component developers are only coding to es5 standards.
Thanks
The text was updated successfully, but these errors were encountered: