PDF viewer stuck in infinite loader when using package with Vite
- 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.
**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
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