question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

vue3-flicking typescript options mismatch

See original GitHub issue

Description

Hi, the typing seems a little bit off. When trying to run some of your examples with vue3 and typescript setup, it gave me this error

Type '{ options: { align: string; circular: boolean; }; }' is not assignable to type 'IntrinsicAttributes & Partial<{}> & Omit<VNodeProps & AllowedComponentProps & ComponentCustomProps, never> & Partial<...> & Omit<...>'.
  Type '{ options: { align: string; circular: boolean; }; }' is missing the following properties from type 'Omit<ExtractProps<FlickingProps> & VNodeProps & AllowedComponentProps & ComponentCustomProps, DefaultKeys<...>>': status, firstPanelSize

130         <Flicking :options="options">
const options = { align: 'prev', circular: true }

Look like the options definition is incorrect somehow.

Steps to check or reproduce

yarn create vite
# select vue3 typescript
# install @egjs/vue3-flicking
# use the component just like examples

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
WoodNeckcommented, Nov 15, 2021

I’ve just released vue3-flicking v4.4.1 that fixes this issue, please try that!

0reactions
hiendvcommented, Nov 18, 2021

Thanks a lot!

Read more comments on GitHub >

github_iconTop Results From Across the Web

vue3-flicking typescript options mismatch - Naver/Egjs-Flicking
This issue has been tracked since 2021-11-11. Description. Hi, the typing seems a little bit off. When trying to run some of your...
Read more >
@egjs/vue3-flicking - npm
Start using @egjs/vue3-flicking in your project by running `npm i ... TypeScript icon, indicating that this package has built-in type ...
Read more >
Vue 3: prop with Validator => TypeScript Error Claiming Other ...
In Vue (v3) adding a prop with a validator causes a TypeScript error claiming that another property does not exist.
Read more >
Typescript type errors in vue-flicking · Issue #453 - GitHub
I recently setup vue-flicking for carousels in a new Vue project I'm working on(in typescript). But when I build it, it fails with...
Read more >
Introducing Flicking v4 with more customization and UI ...
A large number of carousel libraries have the behavior of resizing internal panel elements, often providing a default option for “how many ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found