[5.x] Uncaught Error: pswpModule as string is no longer supported

Created on 1 February 2023, almost 2 years ago
Updated 16 May 2023, over 1 year ago

Problem/Motivation

When use PhotoSwipe ver. > 5.1.8 get error: "Uncaught Error: pswpModule as string is no longer supported"

Steps to reproduce

Install latest PhotoSwipe 5.3.4

Proposed resolution

Change one string in blazy.photoswipe5.js to fix

string opts.pswpModule = PSWP_PATH; change to opts.pswpModule = () => import(PSWP_PATH);

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇷🇺Russia dm66

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024