Maronato/vue-toastification

TypeScript Error when loading module

IsraelOrtuno opened this issue · 0 comments

Versions

  • 1.0

Describe the bug

Seems like there's a TypeScript problem somewhere but can't really find out how to solve it.

Type '(this: undefined) => Element' is not assignable to type '(createElement: CreateElement, hack: RenderContext<DefaultProps>) => VNode'.

Expected behavior

Should not throw TS Error.

Steps to reproduce

Steps:

  1. Install nuxt
  2. Use @nuxtjs/composition-api
  3. Use Typescript
  4. Install this package module
  5. Add "vue-toastification/nuxt" to tsconfig.json types

Additional context

image