Skip to content

Conversation

@cursor
Copy link
Contributor

@cursor cursor bot commented Jan 28, 2026

Upgrade Sentry dependencies to fix TypeError: util.getSystemErrorMap is not a function in ESM environments.

The previous Sentry SDK version (10.5.0) had an ESM compatibility bug where systemErrorIntegration attempted to use CommonJS require('util') calls, which failed in XcodeBuildMCP's pure ESM environment. Upgrading @sentry/node to 10.37.0 and @sentry/cli to 3.1.0 resolves this incompatibility. Fixes XCODEBUILD-MCP-13SX


Open in Cursor Open in Web

@cursor
Copy link
Contributor Author

cursor bot commented Jan 28, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 28, 2026

Open in StackBlitz

npm i https://pkg.pr.new/cameroncooke/XcodeBuildMCP/xcodebuildmcp@192

commit: 507b274

@cameroncooke cameroncooke force-pushed the typeerror-utilgetsystemerrormap-is-03p7my branch from 8e56cde to ab43c19 Compare January 28, 2026 22:22
Upgraded @sentry/node from 10.5.0 to 10.37.0 and @sentry/cli from 2.43.1 to 3.1.0 to resolve TypeError: util.getSystemErrorMap is not a function.

The issue was caused by Sentry's ESM build containing CommonJS require calls for the util module, which fails in XcodeBuildMCP's pure ESM environment. The latest versions have proper ESM support.

Fixes XCODEBUILD-MCP-13SX
@cameroncooke cameroncooke force-pushed the typeerror-utilgetsystemerrormap-is-03p7my branch from ab43c19 to 507b274 Compare January 28, 2026 22:25
@cameroncooke cameroncooke marked this pull request as ready for review January 28, 2026 22:25
@cameroncooke cameroncooke merged commit 61159ae into main Jan 28, 2026
7 of 8 checks passed
@cameroncooke cameroncooke deleted the typeerror-utilgetsystemerrormap-is-03p7my branch January 28, 2026 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants