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
error: SystemError
syscall: "TODO"
errno: -254
at /data/www/00-cup/bun-play/viteapp/node_modules/graceful-fs/polyfills.js:330:28
at /data/www/00-cup/bun-play/viteapp/node_modules/fs-extra/lib/util/stat.js:28:13
at getStatsSync (/data/www/00-cup/bun-play/viteapp/node_modules/fs-extra/lib/util/stat.js:34:14)
at checkPathsSync (/data/www/00-cup/bun-play/viteapp/node_modules/fs-extra/lib/util/stat.js:81:32)
at copySync (/data/www/00-cup/bun-play/viteapp/node_modules/fs-extra/lib/copy/copy-sync.js:27:32)
SystemError:
at lstatSync (native)
at <anonymous> (/data/www/00-cup/bun-play/viteapp/node_modules/graceful-fs/polyfills.js:331:17)
at <anonymous> (/data/www/00-cup/bun-play/viteapp/node_modules/fs-extra/lib/util/stat.js:27:48)
at getStatsSync (/data/www/00-cup/bun-play/viteapp/node_modules/fs-extra/lib/util/stat.js:40:4)
at checkPathsSync (/data/www/00-cup/bun-play/viteapp/node_modules/fs-extra/lib/util/stat.js:82:16)
at copySync (/data/www/00-cup/bun-play/viteapp/node_modules/fs-extra/lib/copy/copy-sync.js:27:42)
fs-extra sets bigint: true option which seems not available in bun, set to undefined will fix the issue
TypeError: Invalid mode: must be an octal number
at chmodSync (native)
at <anonymous> (/data/www/00-cup/bun-play/viteapp/node_modules/graceful-fs/polyfills.js:269:8)
at setDestMode (/data/www/00-cup/bun-play/viteapp/node_modules/fs-extra/lib/copy/copy-sync.js:102:35)
at copyFile (/data/www/00-cup/bun-play/viteapp/node_modules/fs-extra/lib/copy/copy-sync.js:82:39)
at onFile (/data/www/00-cup/bun-play/viteapp/node_modules/fs-extra/lib/copy/copy-sync.js:59:9)
at getStats (/data/www/00-cup/bun-play/viteapp/node_modules/fs-extra/lib/copy/copy-sync.js:51:11)
at handleFilterAndCopy (/data/www/00-cup/bun-play/viteapp/node_modules/fs-extra/lib/copy/copy-sync.js:35:43)
at copySync (/data/www/00-cup/bun-play/viteapp/node_modules/fs-extra/lib/copy/copy-sync.js:28:54)
fs.stat() returns stat.mode which has integer type. set mode = mode.toString(8).slice(2) before fs.chmodSync() calls will fixs the issue, in example its converts 33188 to "0644"
What version of Bun is running?
0.7
What platform is your computer?
ubuntu 22.04
What steps can reproduce the bug?
bun --bun vite
What is the expected behavior?
After fix
What do you see instead?
here is my debug.
1. call to
fs.lstatSync()
fs-extra
setsbigint: true
option which seems not available in bun, set toundefined
will fix the issue2. call to
fs.chmodSync()
-- Resolved by: #3747fs.stat()
returnsstat.mode
which has integer type. setmode = mode.toString(8).slice(2)
beforefs.chmodSync()
calls will fixs the issue, in example its converts33188
to"0644"
The text was updated successfully, but these errors were encountered: