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

SvelteKit deployment issue w/ Swiper #5288

Closed
5 of 6 tasks
onderbakirtas opened this issue Dec 10, 2021 · 3 comments
Closed
5 of 6 tasks

SvelteKit deployment issue w/ Swiper #5288

onderbakirtas opened this issue Dec 10, 2021 · 3 comments
Labels

Comments

@onderbakirtas
Copy link

onderbakirtas commented Dec 10, 2021

Check that this is really a bug

  • I confirm

Reproduction link

https://github.com/onderbakirtas/upo

Bug description

This package doesn't work well with SvelteKit adapters. I have tried both Vercel and CloudFlare without success. Here is the main issue link from SvelteKit's repo: sveltejs/kit#3015

Expected Behavior

No response

Actual Behavior

No response

Swiper version

7.2.0

Platform/Target and Browser Versions

Windows 10, All Browswers

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
@benmccann
Copy link

I wasn't able to test your reproduction since I don't have accounts on Vercel or Cloudflare, but based off the warning messages you get when building, I think this is quite likely to fix it:

@onderbakirtas
Copy link
Author

onderbakirtas commented Dec 13, 2021

Hello. Thanks for the PR and merge. The issue still persists. If you fork the repo and deploy on Vercel, you will encounter the error I'm seeing.

Edit
If I build the project locally with both Vercel and static adapter, it builds normally and using npm run preview doesn't give any error message. I don't know where the issue is at the moment.

@onderbakirtas
Copy link
Author

Closing this since the repo is needed.

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

No branches or pull requests

2 participants