Open mheers opened 2 years ago
Like in https://github.com/wobsoriano/v-perfect-signature/issues/6 I get the following errors when adding library in Vue2:
ERROR in ./node_modules/vue-winbox/dist/index.d.ts(5,34): 5:34 '"./node_modules/vue-demi/lib/index"' has no exported member named 'DefineComponent'. Did you mean 'defineComponent'? 3 | import * as winbox from 'winbox'; 4 | > 5 | declare const _default: vue_demi.DefineComponent<{ | ^ 6 | options: { 7 | type: PropType<winbox.Params>; 8 | required: true; ERROR in ./node_modules/vue-winbox/dist/index.d.ts(31,13): 31:13 Namespace '"./node_modules/vue-demi/lib/index"' has no exported member 'ComponentOptionsMixin'. 29 | }, {}, { 30 | initialize(): void; > 31 | }, vue_demi.ComponentOptionsMixin, vue_demi.ComponentOptionsMixin, ("onmove" | "onresize" | "onclose" | "onfocus" | "onblur")[], "onmove" | "onresize" | "onclose" | "onfocus" | "onblur", vue_demi.VNodeProps & vue_demi.AllowedComponentProps & vue_demi.ComponentCustomProps, Readonly<{ | ^ 32 | options?: unknown; 33 | portalSelector?: unknown; 34 | portalComponent?: unknown; ERROR in ./node_modules/vue-winbox/dist/index.d.ts(31,45): 31:45 Namespace '"./node_modules/vue-demi/lib/index"' has no exported member 'ComponentOptionsMixin'. 29 | }, {}, { 30 | initialize(): void; > 31 | }, vue_demi.ComponentOptionsMixin, vue_demi.ComponentOptionsMixin, ("onmove" | "onresize" | "onclose" | "onfocus" | "onblur")[], "onmove" | "onresize" | "onclose" | "onfocus" | "onblur", vue_demi.VNodeProps & vue_demi.AllowedComponentProps & vue_demi.ComponentCustomProps, Readonly<{ | ^ 32 | options?: unknown; 33 | portalSelector?: unknown; 34 | portalComponent?: unknown; ERROR in ./node_modules/vue-winbox/dist/index.d.ts(31,197): 31:197 Namespace '"./node_modules/vue-demi/lib/index"' has no exported member 'VNodeProps'. 29 | }, {}, { 30 | initialize(): void; > 31 | }, vue_demi.ComponentOptionsMixin, vue_demi.ComponentOptionsMixin, ("onmove" | "onresize" | "onclose" | "onfocus" | "onblur")[], "onmove" | "onresize" | "onclose" | "onfocus" | "onblur", vue_demi.VNodeProps & vue_demi.AllowedComponentProps & vue_demi.ComponentCustomProps, Readonly<{ | ^ 32 | options?: unknown; 33 | portalSelector?: unknown; 34 | portalComponent?: unknown; ERROR in ./node_modules/vue-winbox/dist/index.d.ts(31,219): 31:219 Namespace '"./node_modules/vue-demi/lib/index"' has no exported member 'AllowedComponentProps'. 29 | }, {}, { 30 | initialize(): void; > 31 | }, vue_demi.ComponentOptionsMixin, vue_demi.ComponentOptionsMixin, ("onmove" | "onresize" | "onclose" | "onfocus" | "onblur")[], "onmove" | "onresize" | "onclose" | "onfocus" | "onblur", vue_demi.VNodeProps & vue_demi.AllowedComponentProps & vue_demi.ComponentCustomProps, Readonly<{ | ^ 32 | options?: unknown; 33 | portalSelector?: unknown; 34 | portalComponent?: unknown; ERROR in ./node_modules/vue-winbox/dist/index.d.ts(31,252): 31:252 Namespace '"./node_modules/vue-demi/lib/index"' has no exported member 'ComponentCustomProps'. 29 | }, {}, { 30 | initialize(): void; > 31 | }, vue_demi.ComponentOptionsMixin, vue_demi.ComponentOptionsMixin, ("onmove" | "onresize" | "onclose" | "onfocus" | "onblur")[], "onmove" | "onresize" | "onclose" | "onfocus" | "onblur", vue_demi.VNodeProps & vue_demi.AllowedComponentProps & vue_demi.ComponentCustomProps, Readonly<{ | ^ 32 | options?: unknown; 33 | portalSelector?: unknown; 34 | portalComponent?: unknown; ERROR in ./node_modules/vue-winbox/dist/index.d.ts(47,23): 47:23 Cannot find namespace 'WinBox'. 45 | }>; 46 | > 47 | declare const WinBox: WinBox.WinBoxConstructor; | ^ 48 | declare function useWinBox(): (options: WinBox.Params) => winbox; 49 | 50 | export { _default as default, useWinBox }; ERROR in ./node_modules/vue-winbox/dist/index.d.ts(48,41): 48:41 Cannot find namespace 'WinBox'. 46 | 47 | declare const WinBox: WinBox.WinBoxConstructor; > 48 | declare function useWinBox(): (options: WinBox.Params) => winbox; | ^ 49 | 50 | export { _default as default, useWinBox };
When I have "skipLibCheck": true I get
"skipLibCheck": true
WARNING Compiled with 1 warning warning in ./node_modules/vue-winbox/dist/vue-winbox.esm.js "export 'Teleport' was not found in 'vue-demi'
Despite the error it seems to be working though.
this problem still stands. is there a fix for the warning to not pop up ? The UI works fine for me as well..
Module parse failed: Unexpected token (72:8) You may need an appropriate loader to handle this file type.
Like in https://github.com/wobsoriano/v-perfect-signature/issues/6 I get the following errors when adding library in Vue2:
When I have
"skipLibCheck": true
I getDespite the error it seems to be working though.