box / box/box-content-preview

PDF viewer stuck in infinite loader when using package with Vite

Open
#1,584 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
120
Forks
137
Avg merge
12h 36m
Merged PRs (30d)
17

Description

**Environment:**
- Preview version: 3.0.0

**Desktop:**
- OS: macOS 15.6.1 (24G90)
- Browser: chrome

**Steps to reproduce the problem:**
- Set up a project using Vite
- Install and configure `box-ui-elements` package like
- Attempt to open a uploaded PDF file
- Observe that the viewer shows a loading spinner indefinitely

**What is the expected behavior?**
The PDF viewer should load and display the PDF file content.

**What went wrong?**
The viewer remains stuck in an infinite loading state and never displays the PDF.

Image

Image

**Link to application or sample code:**
```

```

**Expected behavior**
The PDF viewer should load and display the PDF file content.

**Additional context**
- Initial issue - https://github.com/box/box-ui-elements/issues/4335#issue-3514697315
- Versions 2.95.0 and earlier does not have such issue

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with a Vite project using the box-ui-elements package and the shown ContentExplorerComponent configuration, then compare behavior between version 3.0.0 and 2.95.0. Confirm completion when an uploaded PDF opens and displays its content instead of remaining in the loading state.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.