bun
bun copied to clipboard
`column` must be greater than or equal to 0 (columns start at column 0)
What version of Bun is running?
1.2.2+c1708ea6a
What platform is your computer?
Linux 6.13.2-arch1-1 x86_64 unknown
What steps can reproduce the bug?
bunx create-medusa-app@latest my-medusa-store
cd my-medusa-store
bunx --bun medusa build
What is the expected behavior?
Without --bun, it works flawlessly
bunx medusa build
Result
[sylvain@Sylvain-desktop my-medusa-store]$ bunx medusa build
info: Starting build...
info: Compiling backend source...
info: Removing existing ".medusa/server" folder
info: Compiling frontend source...
info: Backend build completed successfully (1.53s)
info: Frontend build completed successfully (9.81s)
What do you see instead?
[sylvain@Sylvain-desktop my-medusa-store]$ bunx --bun medusa build
398 | exports.originalPositionFor = (map, { line, column, bias }) => {
399 | line--;
400 | if (line < 0)
401 | throw new Error(LINE_GTR_ZERO);
402 | if (column < 0)
403 | throw new Error(COL_GTR_EQ_ZERO);
^
error: `column` must be greater than or equal to 0 (columns start at column 0)
at <anonymous> (/home/sylvain/workspace/medusa/my-medusa-store/node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js:403:23)
at mapSourcePosition (/home/sylvain/workspace/medusa/my-medusa-store/node_modules/@cspotcode/source-map-support/source-map-support.js:415:28)
at wrapCallSite (/home/sylvain/workspace/medusa/my-medusa-store/node_modules/@cspotcode/source-map-support/source-map-support.js:592:20)
at prepareStackTrace (/home/sylvain/workspace/medusa/my-medusa-store/node_modules/@cspotcode/source-map-support/source-map-support.js:671:41)
at lookupPathFromDecorator (/home/sylvain/workspace/medusa/my-medusa-store/node_modules/@mikro-orm/core/utils/Utils.js:655:36)
at getMetadataFromDecorator (/home/sylvain/workspace/medusa/my-medusa-store/node_modules/@mikro-orm/core/metadata/MetadataStorage.js:30:95)
at <anonymous> (/home/sylvain/workspace/medusa/my-medusa-store/node_modules/@mikro-orm/core/decorators/PrimaryKey.js:10:49)
at DecorateProperty (/home/sylvain/workspace/medusa/my-medusa-store/node_modules/reflect-metadata/Reflect.js:561:33)
at <anonymous> (/home/sylvain/workspace/medusa/my-medusa-store/node_modules/@medusajs/utils/dist/dal/mikro-orm/base-entity.js:4:92)
at <anonymous> (/home/sylvain/workspace/medusa/my-medusa-store/node_modules/@medusajs/utils/dist/dal/mikro-orm/base-entity.js:61:1)
Bun v1.2.2 (Linux x64)
Additional information
It looks like #2375 but that issue has been solved a long while ago.
I'm experiencing the same behavior, specifically with medusa database setup. OS ubuntu 24.04.2 LTS, bun version 1.2.5
I am seeing this only when I try to build a medusa container (ubuntu), while running bunx medusa build
it runs fine on my mac
can confirm, error occurs when trying to build a medusa worker in a container
Same issue here, running fine with bun locally but will not work in my oven/bun container
same issue when trying to run medusajs with bun
Hello, same issue here.
Also running on Ubuntu 24.04 (6.11.0-29-generic).
$ bun run build
$ medusa build
398 | exports.originalPositionFor = (map, { line, column, bias }) => {
399 | line--;
400 | if (line < 0)
401 | throw new Error(LINE_GTR_ZERO);
402 | if (column < 0)
403 | throw new Error(COL_GTR_EQ_ZERO);
^
error: `column` must be greater than or equal to 0 (columns start at column 0)
at <anonymous> (/builds/<redacted>/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js:403:27)
at mapSourcePosition (/builds/<redacted>/node_modules/@cspotcode/source-map-support/source-map-support.js:415:28)
at wrapCallSite (/builds/<redacted>/node_modules/@cspotcode/source-map-support/source-map-support.js:592:20)
at prepareStackTrace (/builds/<redacted>/node_modules/@cspotcode/source-map-support/source-map-support.js:671:41)
at lookupPathFromDecorator (/builds/<redacted>/node_modules/@mikro-orm/core/utils/Utils.js:655:36)
at getMetadataFromDecorator (/builds/<redacted>/node_modules/@mikro-orm/core/metadata/MetadataStorage.js:30:95)
at <anonymous> (/builds/<redacted>/node_modules/@mikro-orm/core/decorators/PrimaryKey.js:10:49)
at DecorateProperty (/builds/<redacted>/node_modules/reflect-metadata/Reflect.js:561:33)
at decorate (/builds/<redacted>/node_modules/reflect-metadata/Reflect.js:136:24)
at <anonymous> (/builds/<redacted>/node_modules/@medusajs/utils/dist/dal/mikro-orm/base-entity.js:4:92)
Bun v1.2.23 (Linux x64 baseline)
Same issue
same issue https://github.com/oven-sh/bun/issues/25076