Closed levarberry closed 9 months ago
const app = createApp({ setup() { provide(DefaultApolloClient, apolloClient); }, render: () => h(App), }) .use(IonicVue) .use(Vue3Signature) .use(router) .use(pinia);
Error Message at .use(Vue3Signature)
Argument of type 'DefineComponent<{ sigOption: { type: PropType; default: () => { backgroundColor: string; penColor: string; }; }; w: { type: StringConstructor; default: string; }; ... 4 more ...; defaultUrl: { ...; }; }, ... 11 more ..., {}>' is not assignable to parameter of type 'Plugin<[]>'. Type 'DefineComponent<{ sigOption: { type: PropType; default: () => { backgroundColor: string; penColor: string; }; }; w: { type: StringConstructor; default: string; }; ... 4 more ...; defaultUrl: { ...; }; }, ... 11 more ..., {}>' is not assignable to type '{ install: (app: App) => any; }'.
Using Vue 3.3.0 Using Ionic 6.x Using Typescript 4.3.5
Not registering the component globally fixed the problem. Just import into the component I actually needed it and not using .use()
.use()
Error Message at .use(Vue3Signature)
Argument of type 'DefineComponent<{ sigOption: { type: PropType; default: () => { backgroundColor: string; penColor: string; }; }; w: { type: StringConstructor; default: string; }; ... 4 more ...; defaultUrl: { ...; }; }, ... 11 more ..., {}>' is not assignable to parameter of type 'Plugin<[]>'.
Type 'DefineComponent<{ sigOption: { type: PropType; default: () => { backgroundColor: string; penColor: string; }; }; w: { type: StringConstructor; default: string; }; ... 4 more ...; defaultUrl: { ...; }; }, ... 11 more ..., {}>' is not assignable to type '{ install: (app: App) => any; }'.