Skip to content

BuildVersion not read version of package.json #3835

@llmdev

Description

@llmdev

Describe the bug

BuildVersion is not reading the version from package.json as described in the documentation.

https://module-federation.io/guide/debug/variables.html#buildversion

To reproduce, just run npm run dev, and access http://localhost:5173/mf-manifest.json and see that the buildVersion does not match the version in package.json

Reproduction

https://github.com/llmdev/bug-mfe

Used Package Manager

npm

System Info

System:
    OS: macOS 15.3.1
    CPU: (8) arm64 Apple M1
    Memory: 1.18 GB / 16.00 GB
    Shell: 3.7.1 - /opt/homebrew/bin/fish
  Binaries:
    Node: 22.10.0 - ~/.nvm/versions/node/v22.10.0/bin/node
    npm: 6.12.1 - /usr/local/bin/npm
    pnpm: 8.15.5 - /opt/homebrew/bin/pnpm
    Watchman: 2025.05.26.00 - /opt/homebrew/bin/watchman
  Browsers:
    Chrome: 137.0.7151.56
    Chrome Canary: 139.0.7228.0
    Edge: 136.0.3240.76
    Safari: 18.3

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions