vue-splide
vue-splide copied to clipboard
Property 'slice' does not exist on type 'U[keyof U]'
Checks
- [X] Not a duplicate.
- [X] Not a question, feature request, or anything other than a bug report directly related to Vue Splide. Use Discussions for these topics: https://github.com/Splidejs/splide/discussions
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
- Open reproduction link
- Terminal: run
yarn type-check...
Expected Behaviour
No errors on type check
Hi. I also have this error after some dependency upgrades. Is there a way to fix it temporarily?
I can't open a PR or even push a branch. This is what needs to be done, in order to fix it: