Skip to content

Assets binary data changes dependng on OS and / or architecture / nodejs version #2796

@webratz

Description

@webratz

Search terms

Expected Behavior

No matter on what machine I run typedoc, the output with the same input should always be the same.

Actual Behavior

Typedoc produces different asset output, depending on which machine its run on. The following things produce different output:

  • assets/hierarchy.js the window.hierarchyData
  • assets/navigation.js window.navigationData
  • assets/search.js window.searchData

I'm not yet sure if its a OS and / or an architecture or nodejs version difference that causes this difference. In our case a developer runs typedoc on their Apple Silicon Macbook, and get one version of the files mentioned above. The CI system which uses a linux container on x86 gets another output.
In our case we block deployments that change checked in files. I added the environment for both variants on the bottom.

Steps to reproduce the bug

Run typedoc with the following in different systems

typedoc src --disableSources --out docs/

Environment

Developer Macbook

  • Typedoc version: 0.27.2
  • TypeScript version: 5.7.2
  • Node.js version: v20.17.0
  • OS: MacOs Sonoma 14.6.1 (23G93) / Apple M1 Pro

CI System

  • Typedoc version: 0.27.2
  • TypeScript version: 5.7.2
  • Node.js version: v18.20.5
  • OS: Debian GNU/Linux 12 (bookworm)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions