Skip to content

Property 'slice' does not exist on type 'U[keyof U]' #94

Open
@rriixx

Description

@rriixx

Checks

Version

0.6.12

Description

When running yarn type-check i'm getting this error.
I created a minimal project, please run yarn type-check in the terminal so see the error.

node_modules/@splidejs/vue-splide/src/js/utils/merge/merge.ts:39:29 - error TS2339: Property 'slice' does not exist on type 'U[keyof U]'.

39       merged[ key ] = value.slice();
                               ~~~~~

Found 1 error in node_modules/@splidejs/vue-splide/src/js/utils/merge/merge.ts:39

Reproduction Link

https://stackblitz.com/edit/nuxt-starter-q9nc9c?file=package.json

Steps to Reproduce

  1. Open reproduction link
  2. Terminal: run yarn type-check
    ...

Expected Behaviour

No errors on type check

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions