-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Using PhotoSwipe 5.3 with TypeScript #1951
Comments
I'm not sure what might be wrong, on my side it works when I try to import it. If you know how |
Try this: import PhotoSwipeLightbox from 'photoswipe/dist/photoswipe-lightbox.esm.js';
import 'photoswipe/dist/photoswipe.css'; |
Version: 5.3.2 May be this will be helpfull: May be something is wrong with |
I also encountered the same error as @Profesor08:
I realized that my To fix it, I change my resolution mode to |
Thank you @dimsemenov for this great software and @irudoy for the Typescript definitions.
Today I have tried to use PhotoSwipe 5.2 (and 5.3) via Typescript. In VC I can simply use the following code:
No errors are displayed. But trying to package it, using typescript 4.7.4, I get the following message:
Do you have any hint how to solve that issue?
The text was updated successfully, but these errors were encountered: