Skip to content

pdfx-cli init: auto-install of @react-pdf/renderer fails under Bun (@react-pdf/svg 404) #127

@kingRayhan

Description

@kingRayhan

Context

Running bunx pdfx-cli init and choosing to install @react-pdf/renderer when prompted fails. This is almost certainly upstream (see diegomura/react-pdf#3382@react-pdf/svg missing / 404 on npm), not a bug in pdfx-cli itself. I'm opening this here so you're aware for docs, CLI messaging, or any workaround you might want to suggest.

Steps

  1. In a project using Bun: bunx pdfx-cli init
  2. When prompted, accept installing @react-pdf/renderer

Actual output

Failed to install @react-pdf/renderer

Installation failed: Command failed with exit code 1: bun add '@react-pdf/renderer'

error: GET https://registry.npmjs.org/@react-pdf%2fsvg - 404
error: @react-pdf/svg@^1.1.0 failed to resolve

Expected

Either install succeeds, or the CLI documents a known upstream constraint (e.g. use npm/pnpm until @react-pdf/renderer resolves, or pin a working version).

Environment

  • pdfx-cli (via bunx pdfx-cli init)
  • Bun v1.3.10
  • Package root: consumer app (e.g. Vite/React monorepo)

Thanks for pdfx — hope this helps other users who hit the same path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions