Skip to content

fix: replace swiper/element/bundle import with swiper/element#1216

Open
Akshansh0612 wants to merge 1 commit intoRocketChat:developfrom
Akshansh0612:fix-swiper-element-import
Open

fix: replace swiper/element/bundle import with swiper/element#1216
Akshansh0612 wants to merge 1 commit intoRocketChat:developfrom
Akshansh0612:fix-swiper-element-import

Conversation

@Akshansh0612
Copy link

Brief Description

This PR fixes an incorrect import path used in the ImageGallery Swiper component.

Previously the code imported:
import { register } from 'swiper/element/bundle';

This caused module resolution errors in Storybook and tests because the module could not be resolved properly.

The import has been updated to:
import { register } from 'swiper/element';

which works correctly with the installed Swiper dependency.

Changes Made

  • Updated import path in packages/react/src/views/ImageGallery/Swiper.js
  • Replaced swiper/element/bundle with swiper/element

Verification

  • Ran Storybook locally using yarn storybook
  • The project builds successfully without module resolution errors.

Issue

Fixes #1191

@CLAassistant
Copy link

CLAassistant commented Mar 18, 2026

CLA assistant check
All committers have signed the CLA.

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

Successfully merging this pull request may close these issues.

fix(react): src/index.test.js fails on develop due to missing swiper/element/bundle module

2 participants