bun
bun copied to clipboard
Cannot find module from "bun:main"
What version of Bun is running?
0.7.2
What platform is your computer?
Linux 3.10.0-1127.10.1.el7.x86_64 x86_64 x86_64 x64
What steps can reproduce the bug?
curl -fsSL https://bun.sh/install | bash
mkdir quickstart
cd quickstart
bun init
bun run index.ts
What is the expected behavior?
No error when using script from documentation
What do you see instead?
error: Cannot find module "../quickstart/index.ts" from "bun:main"
Additional information
CentOS-7 glibc-2.28
Try using index.js
Try using index.js
created a index.js file and tested it.
error: Cannot find module "../project/index.js" from "bun:main"
+1
This is likely a result of using a really old Linux kernel.
macos 14 also has this problem of writing a library by itself, other projects using vscode have been recognized normally, but the module can not be found when running