WangShayne / vue3-signature

Electronic signature for Vue3
93 stars 14 forks source link

Error Loading Vue3Signature with Ionic Vue template #23

Closed levarberry closed 9 months ago

levarberry commented 1 year 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
levarberry commented 1 year ago

Not registering the component globally fixed the problem. Just import into the component I actually needed it and not using .use()