Skip to content

Pin simple-xml-to-json to 1.2.3 to fix global install crash (#23)#25

Merged
dzucconi merged 1 commit into
mainfrom
fixes-import-error
May 4, 2026
Merged

Pin simple-xml-to-json to 1.2.3 to fix global install crash (#23)#25
dzucconi merged 1 commit into
mainfrom
fixes-import-error

Conversation

@dzucconi
Copy link
Copy Markdown
Member

@dzucconi dzucconi commented May 4, 2026

Fixes #23arena crashes on startup after a global install with:

SyntaxError: The requested module 'simple-xml-to-json' does not provide an export named 'default'

terminal-imagejimp@jimp/plugin-print imports simple-xml-to-json as a default export:

import xmlPackage from "simple-xml-to-json";

simple-xml-to-json@1.2.5 dropped the default export (named exports only). Local builds work because the committed lockfile pins 1.2.3, but npm i -g @aredotna/cli has no lockfile and resolves the latest, which breaks.

TODO: Consider whether terminal-image is worth its dep weight long-term.

@dzucconi dzucconi added the patch label May 4, 2026
@dzucconi dzucconi merged commit 6276e38 into main May 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cli installs but crashes on startup with import error

1 participant