Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type error within Intersection extension #927

Closed
2 tasks done
peckomingo opened this issue Sep 21, 2022 · 3 comments
Closed
2 tasks done

Type error within Intersection extension #927

peckomingo opened this issue Sep 21, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@peckomingo
Copy link

peckomingo commented Sep 21, 2022

Checks

Version

v4.0.17

Description

Every time is use the Intersection extension, I get the following error in the terminal.

Property 'Intersection' of type 'IntersectionComponent | undefined' is not assignable to 'string' index type 'BaseComponent'.

image

Splide Version: 4.0.17
Intersection Extension Version: 0.2.0

Reproduction Link

No response

Steps to Reproduce

  1. Import Intersection extension
  2. use as stated in docs (e.g. via new Splide( '#splide' ).mount( { Intersection } ); )
  3. start the project
  4. check terminal for the error

Expected Behaviour

The type error is not shown.

@peckomingo peckomingo added the bug Something isn't working label Sep 21, 2022
@NaotoshiFujita
Copy link
Collaborator

NaotoshiFujita commented Sep 21, 2022

Hi, thank you for your report.
I've fixed the issue. Can you try the latest version (v4.1.2)?

@peckomingo
Copy link
Author

peckomingo commented Sep 21, 2022

Wow what a fast reaction 🔥
Thank you, it works now!

@NaotoshiFujita
Copy link
Collaborator

Yay!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants