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

Compiler module resolution "bundler" missing types #6682

Closed
5 of 6 tasks
filipbekic01 opened this issue May 15, 2023 · 2 comments
Closed
5 of 6 tasks

Compiler module resolution "bundler" missing types #6682

filipbekic01 opened this issue May 15, 2023 · 2 comments

Comments

@filipbekic01
Copy link

filipbekic01 commented May 15, 2023

Check that this is really a bug

  • I confirm

Reproduction link

  • Init Vue and try installing and importing Swipe (no link).

Bug description

When using TypeScript configuration with compilerOptions.moduleResolution set to "bundler", compiler can not find swiper types.

Issue is present with latest Vue installation since they use that "bundler" option. Issue is not Vue related but that's the easiest way to reproduce it. Just initialize fresh Vue project.

Expected Behavior

There should be no import type errors.

Actual Behavior

It's failing to find types on import.

Swiper version

9.3.2

Platform/Target and Browser Versions

Linux

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR
@nolimits4web
Copy link
Owner

Duplicate #6685

@BrettHoutz
Copy link

This issue should be reopened. Workarounds to disable type definitions for swiper are suggested in #6685, but no actual solution to fix the types has been implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants