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
Bun runtime: source-map crash during indexing (Column must be >= 0, got -1) #3045
When using runtime: 'bun' in trigger.config.ts, the indexing phase crashes with:
TypeError: Column must be greater than or equal to 0, got -1
at SourceMapConsumer_findMapping (source-map/lib/source-map-consumer.js:588:13)
at SourceMapConsumer_originalPositionFor (source-map/lib/source-map-consumer.js:653:17)
at mapSourcePosition (source-map-support/source-map-support.js:244:38)
at wrapCallSite (source-map-support/source-map-support.js:397:9)
at prepareStackTrace (source-map-support/source-map-support.js:446:25)
at registerResources (trigger.dev/src/indexing/registerResources.ts:32:11)
at bootstrap (trigger.dev/src/entryPoints/managed-index-worker.ts:91:37)
This happens because Bun's runtime produces -1 as a column value when resolving stack traces, and source-map@0.6.1 (transitive dep via source-map-support@0.5.21) throws on negative columns.
Activity
capaj commentedon Feb 13, 2026
@ericallam would you merge a PR addressing this? as per Workaround
ericallam commentedon Feb 13, 2026
@capaj yup feel free to open a PR for this 👍
capaj commentedon Feb 13, 2026
ok will have claude open this in few minutes
fix: handle invalid source map columns in Bun runtime