Open birkskyum opened 1 year ago
process.binding("uv")
, it's simply just a Map
object with error codes.fv.default.WriteStream.prototype.getColorDepth
should be fixed soon.Update after the WriteStream was merged:
my-redwood-project4 on main [?] via 🍞 v0.7.4
➜ bun --bun redwood dev
[0.04ms] ".env"
execa/lib/errname: unable to establish process.binding('uv') 1 | (function (bindingName){"use strict";if(bindingName==="constants")return @processBindingConstants;const issue={fs:3546,buffer:2020,natives:2254,uv:2891}[bindingName];if(issue)throw new Error(`process.binding("${bindingName}") is not implemented in Bun. Track the status & thumbs up the issue: https://github.com/oven-sh/bun/issues/${issue}`);@throwTypeError(`process.binding("${bindingName}") is not implemented in Bun. If that breaks something, please file an issue and include a reproducible code sample.`)})
^
error: process.binding("uv") is not implemented in Bun. Track the status & thumbs up the issue: https://github.com/oven-sh/bun/issues/2891
at binding (:1:20)
at /Users/admin/repos/redwood-test/my-redwood-project4/node_modules/envinfo/dist/envinfo.js:1:0
at n (/Users/admin/repos/redwood-test/my-redwood-project4/node_modules/envinfo/dist/envinfo.js:1:33779)
at /Users/admin/repos/redwood-test/my-redwood-project4/node_modules/envinfo/dist/envinfo.js:1:127871
at n (/Users/admin/repos/redwood-test/my-redwood-project4/node_modules/envinfo/dist/envinfo.js:1:33779)
at /Users/admin/repos/redwood-test/my-redwood-project4/node_modules/envinfo/dist/envinfo.js:1:127237
at n (/Users/admin/repos/redwood-test/my-redwood-project4/node_modules/envinfo/dist/envinfo.js:1:33779)
at /Users/admin/repos/redwood-test/my-redwood-project4/node_modules/envinfo/dist/envinfo.js:1:126295
at n (/Users/admin/repos/redwood-test/my-redwood-project4/node_modules/envinfo/dist/envinfo.js:1:33779)
at /Users/admin/repos/redwood-test/my-redwood-project4/node_modules/envinfo/dist/envinfo.js:1:124410
[0.02ms] ".env"
execa/lib/errname: unable to establish process.binding('uv') 1 | (function (bindingName){"use strict";if(bindingName==="constants")return @processBindingConstants;const issue={fs:3546,buffer:2020,natives:2254,uv:2891}[bindingName];if(issue)throw new Error(`process.binding("${bindingName}") is not implemented in Bun. Track the status & thumbs up the issue: https://github.com/oven-sh/bun/issues/${issue}`);@throwTypeError(`process.binding("${bindingName}") is not implemented in Bun. If that breaks something, please file an issue and include a reproducible code sample.`)})
^
error: process.binding("uv") is not implemented in Bun. Track the status & thumbs up the issue: https://github.com/oven-sh/bun/issues/2891
at binding (:1:20)
at /Users/admin/repos/redwood-test/my-redwood-project4/node_modules/envinfo/dist/envinfo.js:1:0
at n (/Users/admin/repos/redwood-test/my-redwood-project4/node_modules/envinfo/dist/envinfo.js:1:33779)
at /Users/admin/repos/redwood-test/my-redwood-project4/node_modules/envinfo/dist/envinfo.js:1:127871
at n (/Users/admin/repos/redwood-test/my-redwood-project4/node_modules/envinfo/dist/envinfo.js:1:33779)
at /Users/admin/repos/redwood-test/my-redwood-project4/node_modules/envinfo/dist/envinfo.js:1:127237
at n (/Users/admin/repos/redwood-test/my-redwood-project4/node_modules/envinfo/dist/envinfo.js:1:33779)
at /Users/admin/repos/redwood-test/my-redwood-project4/node_modules/envinfo/dist/envinfo.js:1:126295
at n (/Users/admin/repos/redwood-test/my-redwood-project4/node_modules/envinfo/dist/envinfo.js:1:33779)
at /Users/admin/repos/redwood-test/my-redwood-project4/node_modules/envinfo/dist/envinfo.js:1:124410
api | [0.03ms] ".env"
gen | [0.02ms] ".env"
api | [0.02ms] ".env"
gen | [0.02ms] ".env"
web | Usage Error: The nearest package directory (/Users/admin/repos/redwood-test/my-redwood-project4/web) doesn't seem to be part of the project declared in /Users/admin/repos/redwood-test/my-redwood-project4.
web |
web | - If /Users/admin/repos/redwood-test/my-redwood-project4 isn't intended to be a project, remove any yarn.lock and/or package.json file there.
web | - If /Users/admin/repos/redwood-test/my-redwood-project4 is intended to be a project, it might be that you forgot to list web in its workspace configuration.
web | - Finally, if /Users/admin/repos/redwood-test/my-redwood-project4 is fine and you intend web to be treated as a completely separate project (not even a workspace), create an empty yarn.lock file in it.
web |
web | $ yarn run [--inspect] [--inspect-brk] [-T,--top-level] [-B,--binaries-only] <scriptName> ...
web | yarn cross-env NODE_ENV=development rw-vite-dev exited with code 0
api | Internal Error: Invalid stdio option
api | yarn cross-env NODE_ENV=development NODE_OPTIONS=--enable-source-maps yarn nodemon --quiet --watch "/Users/admin/repos/redwood-test/my-redwood-project4/redwood.toml" --exec "yarn rw-api-server-watch --port 8911 --debug-port 18911 | rw-log-formatter" exited with code 0
gen | Internal Error: Invalid stdio option
gen | yarn rw-gen-watch exited with code 0
It could seem like redwood is heavily invested in yarn, to an extend that makes it incompatible with both npm, pnpm and arguably bun as well. It's still valuable to get bun capabilities on par with node, npm and pnpm, but it doesn't seem feasible to invest too much time on this until the redwood codebase is refactored to support non-yarn toolchains.
Returns this:
➜ bun --bun redwood dev
[0.04ms] ".env"
┌ Error ─────────────────────────────────────────────────┐
│ │
│ TypeError: (0, _yargs.default) is not a function. │
│ (In '(0, _yargs.default)((0, │
│ _helpers.hideBin)(process.argv))', '(0, │
│ _yargs.default)' is "/Users/admin/repos/redwood-te │
│ st/my-redwood-project4/node_modules/yargs/yargs") │
│ at <anonymous> (/Users/admin/repos/redwood-test/my │
│ -redwood-project4/node_modules/@redwoodjs/cli/dist │
│ /index.js:168:10) │
│ at runYargs (/Users/admin/repos/redwood-test/my-re │
│ dwood-project4/node_modules/@redwoodjs/cli/dist/in │
│ dex.js:160:16) │
│ at <anonymous> (/Users/admin/repos/redwood-test/my │
│ -redwood-project4/node_modules/@redwoodjs/cli/dist │
│ /index.js:138:6) │
│ at <anonymous> (/Users/admin/repos/redwood-test/my │
│ -redwood-project4/node_modules/@redwoodjs/cli/dist │
│ /index.js:120:66) │
│ at run (node:async_hooks:70:6) │
│ at <anonymous> (/Users/admin/repos/redwood-test/my │
│ -redwood-project4/node_modules/@redwoodjs/cli/dist │
│ /index.js:120:60) │
│ at main (/Users/admin/repos/redwood-test/my-redwoo │
│ d-project4/node_modules/@redwoodjs/cli/dist/index. │
│ js:112:6) │
│ at <anonymous> (/Users/admin/repos/redwood-test/my │
│ -redwood-project4/node_modules/@redwoodjs/cli/dist │
│ /index.js:193:5) │
│ at global code (/Users/admin/repos/redwood-test/my │
│ -redwood-project4/node_modules/@redwoodjs/cli/dist │
│ /index.js:120:8) │
│ at anonymous (native) │
│ │
│ -------------------------------------------------- │
│ │
│ Need help? │
│ - Not sure about something or need advice? Reach │
│ out on our Forum │
│ - Think you've found a bug? Open an issue on our │
│ GitHub │
│ - Here's your unique error reference to quote: │
│ '60fe3334-202c-4819-a070-82de5ab359c1' │
│ │
└────────────────────────────────────────────────────────┘
error: "redwood" exited with code 1 (SIGHUP)
minimal repro require("yargs/yargs")
the .cjs file extension is not present on a file in yargs. that messes this up.
tbh idk what i'm supposed to do here. it's running yarn.
okay so this framework is just yarn heavy, if i use yarn as a package manager, i get to this.
we need to support Readable inside of our child_process stdio.
Version used: 1.1.8-canary.1+1fd021e1c
What works now is
bunx create-redwood-app my-redwood-project --typescript
cd my-redwood-project
yarn install
bun --bun redwood dev
Creating with bunx --bun
will error with:
Installing with bun install
instead of yarn install
will give this Prisma error when trying to run the app:
Redwood - GitHub - Website
What version of Bun is running?
0.7.3
What platform is your computer?
Darwin 22.5.0 arm64 arm
What steps can reproduce the bug?
yarn create redwood-app my-redwood-project --typescript
(step through all with defaults)cd my-redwood-project
yarn rw dev
bun --bun redwood dev
What is the expected behavior?
What do you see instead?
Additional information
No response