You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SyntaxError: Invalid regular expression flags on Pi #232
Thanks for reporting this. I opened #256 to make this failure mode explicit.
The underlying issue is that current CodeBurn releases are no longer compatible with Node 18. Some modern terminal dependencies parse syntax that Node 18 cannot load, so the process crashed with:
SyntaxError: Invalid regular expression flags
before CodeBurn could print a useful message.
The PR adds a small launcher in front of the main CLI bundle. It checks the runtime before loading Ink/terminal dependencies and now prints an actionable upgrade message when Node is too old. The package and README now require Node >=22.13.0, which also lines up with the unflagged node:sqlite requirement used by Cursor/OpenCode/Goose providers.
So on the Pi, the expected fix is to upgrade Node from v18.20.4 to Node 22.13.0+ (or a current 24/25 release). After #256 lands, running on Node 18 should fail clearly with the upgrade message instead of the dependency-level regex crash.
Validation in the PR:
runtime guard unit tests for Node 18, 22.11, 22.12, 22.13, 23, and 24+
npm run build with verified tiny dist/cli.js launcher
git clone https://github.com/getagentseal/codeburn.git
cd codeburn && npm install && npm run build
node dist/cli.js --version
The fix is in the next release. The underlying requirement hasn't changed -- codeburn needs Node 22.13+ for node:sqlite and modern dependencies -- but now you get a clear message about it.
Activity
ozymandiashh commentedon May 7, 2026
Thanks for reporting this. I opened #256 to make this failure mode explicit.
The underlying issue is that current CodeBurn releases are no longer compatible with Node 18. Some modern terminal dependencies parse syntax that Node 18 cannot load, so the process crashed with:
before CodeBurn could print a useful message.
The PR adds a small launcher in front of the main CLI bundle. It checks the runtime before loading Ink/terminal dependencies and now prints an actionable upgrade message when Node is too old. The package and README now require Node
>=22.13.0, which also lines up with the unflaggednode:sqliterequirement used by Cursor/OpenCode/Goose providers.So on the Pi, the expected fix is to upgrade Node from
v18.20.4to Node22.13.0+(or a current 24/25 release). After #256 lands, running on Node 18 should fail clearly with the upgrade message instead of the dependency-level regex crash.Validation in the PR:
npm run buildwith verified tinydist/cli.jslauncheriamtoruk commentedon May 12, 2026
Fix in #319. The CLI now starts through a tiny launcher that checks for Node >= 22.13.0 before loading the main bundle. On Node 18 you'll get:
instead of the
SyntaxError: Invalid regular expression flagscrash.@djspacedevil you can test from main:
The fix is in the next release. The underlying requirement hasn't changed -- codeburn needs Node 22.13+ for
node:sqliteand modern dependencies -- but now you get a clear message about it.Add Node version guard for unsupported runtimes (#319)