Skip to content

bun build -> Unsupported URI scheme for importing: node #18545

@BluewyDiamond

Description

@BluewyDiamond

What version of Bun is running?

1.2.7+5c0fa6dc2

What platform is your computer?

Linux 6.14.0-3-cachyos x86_64 unknown

What steps can reproduce the bug?

in my script i have the following:

    bun build --minify --target bun --external gi://\* --external system --external console --outdir=$build_dir -- $parent/src/main.ts

and i run it with LD_PRELOAD=/usr/lib/libgtk4-layer-shell.so gjs -m $build_dir/main.js outputs:

(gjs:89964): Gjs-WARNING **: 21:57:49.540: JS ERROR: ImportError: Unsupported URI scheme for importing: node


(gjs:89964): Gjs-CRITICAL **: 21:57:49.540: Failed to resolve imports for module: 'file:///home/bluewy/git/private/dotfiles/cachyos/files/modules/ags/build/main.js'

What is the expected behavior?

The expected behavior is gjs running successfully. It worked with 1.2.5.

What do you see instead?

No response

Additional information

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingbundlerSomething to do with the bundlerregression

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions