fast-xml-parser icon indicating copy to clipboard operation
fast-xml-parser copied to clipboard

v5.5.0 has a broken dependency on fast-xml builder

Open battis opened this issue 8 months ago β€’ 9 comments

  • [x] Are you running the latest version?
  • [x] Have you included sample input, output, error, and expected output?
  • [x] Have you checked if you are using correct configuration?
  • [x] Did you try online tool?
  • [x] Have you checked the docs for helpful APIs and examples?

Description

Installing [email protected] breaks. (dependency on fast-xml-builder is relative path)

 ERR_PNPM_LINKED_PKG_DIR_NOT_FOUND  Could not install from "/path/to/my/project/fxp-builder" as it does not exist.

This error happened while installing the dependencies of [email protected]
 at [email protected]

Input

pnpm i [email protected]

Code

n/a

Output

n/a

expected data

A successful install

Would you like to work on this issue?

  • [ ] Yes
  • [x] No

Bookmark this repository for further updates. Visit SoloThought to know about recent features.

battis avatar Mar 10 '26 13:03 battis

We're glad you find this project helpful. We'll try to address this issue ASAP. You can vist https://solothought.com to know recent features. Don't forget to star this repo.

github-actions[bot] avatar Mar 10 '26 13:03 github-actions[bot]

Unclear what branch this was released from -- no visible branches contain the dependency as published to npmjs:

"fast-xml-builder": "file:../../fxp-builder"

battis avatar Mar 10 '26 13:03 battis

encountering the same issue, seems to be latest deployment of fast-xml-builder https://github.com/NaturalIntelligence/fast-xml-builder/commit/c687d9676e055ad9cda122707387ea0197a231e0

Temporary fix, add this to your package.json:

"resolutions": {
    "fast-xml-builder": "1.0.0"
}

ebs-sam-j avatar Mar 10 '26 14:03 ebs-sam-j

Nice. More elegant than the temporary fix I was using: installing [email protected] >5.5.0 as a dev dependency.

battis avatar Mar 10 '26 14:03 battis

Glad I could help!

ebs-sam-j avatar Mar 10 '26 14:03 ebs-sam-j

Same error in deno (supabase edge function), Firebase Admin depends on this library, basically they are breaking builds that use Firebase as well

unexpected deploy status 400:

{
  "message": "Failed to bundle the function (reason:
  
  Error in [email protected] parsing version requirement for dependency \"fast-xml-builder\": \"file:../../fxp-builder\"

  0: Invalid version requirement
  1: Unexpected character.

         file:../../fxp-builder
         ~
  )"
}

Try rerunning the command with --debug to troubleshoot the error.

DreezDev avatar Mar 10 '26 14:03 DreezDev

Yes, there are several packages that depend on this. It is most inconvenient.

battis avatar Mar 10 '26 14:03 battis

encountering the same issue, seems to be latest deployment of fast-xml-builder NaturalIntelligence/fast-xml-builder@c687d96

Temporary fix, add this to your package.json:

"resolutions": {
    "fast-xml-builder": "1.0.0"
}

or with pnpm:

  "pnpm": {
    "overrides": {
      "fast-xml-parser": "5.5.0",
      "fast-xml-parser>fast-xml-builder": "1.0.0"
    }
  }

eriklumbela avatar Mar 10 '26 15:03 eriklumbela

my bad. fixed

amitguptagwl avatar Mar 10 '26 15:03 amitguptagwl