Skip to content

PDF viewer stuck in infinite loader when using package with Vite #1584

@Selnapenek

Description

@Selnapenek

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:

            <ContentExplorerComponent
              canShare={false}
              canPreview={true}
              canUpload={false}
              canCreateNewFolder={false}
              contentPreviewProps={{
                contentSidebarProps: {
                  detailsSidebarProps: {
                    hasProperties: false,
                    hasNotices: false,
                    hasAccessStats: false,
                    hasClassification: false,
                    hasRetentionPolicy: false,
                  },
                  hasActivityFeed: false,
                  hasMetadata: false,
                  hasSkills: false,
                  hasVersions: false,
                },
              }}
              rootFolderId={rootFolderId || 0}
              token={token}
              logoUrl=""
              onDownload={handleDownload}
            />

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

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions