-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: yarn rw dev
fails on yarn 4 node 20
#9578
Comments
Downgraded to node 18, but kept yarn 4. Still get the same error |
Went back up to node 20, but downgraded yarn to 3.7.0. Now everything works. |
To me this is starting to look like a bug with yarn. Shouldn't it use yarn 3 inside the project directory since we have |
Fix for #9578 and https://community.redwoodjs.com/t/yarn-redwood-dev-throwing-internal-error/5557. @Tobbe and I paired on this one. Basically, there's a footgun in the yarn docs. If you read them too quickly, it seems like you can update your global version of yarn via `yarn set version stable`. But that command is actually only meant to be used in the context of a project (like a Redwood app).
Fix for #9578 and https://community.redwoodjs.com/t/yarn-redwood-dev-throwing-internal-error/5557. @Tobbe and I paired on this one. Basically, there's a footgun in the yarn docs. If you read them too quickly, it seems like you can update your global version of yarn via `yarn set version stable`. But that command is actually only meant to be used in the context of a project (like a Redwood app).
Fixed by updating our documentation in #9579 |
What's not working?
Using yarn 4 and node 20
yarn create redwood-app
complains about the node version, but ultimately successfully finishesyarn install
finishes OK, but does complain about fseventsRunning
yarn redwood dev
fails, complaining about fseventsAnd here's some of the output as text, for easier searching:
This was first reported on our forums over here: https://community.redwoodjs.com/t/yarn-redwood-dev-throwing-internal-error/5557
How do we reproduce the bug?
Verify that yarn 4 is the global version
Switch to node 20
Create a new RW project
Finally try running your project, and you'll see the error messages
What's your environment? (If it applies)
❯ yarn rw info System: OS: macOS 14.1.1 Shell: 5.9 - /bin/zsh Binaries: Node: 20.10.0 - /private/var/folders/7j/9p56mwmj6jsfdr2h5_884j9w0000gn/T/xfs-4e32de2c/node Yarn: 3.7.0 - /private/var/folders/7j/9p56mwmj6jsfdr2h5_884j9w0000gn/T/xfs-4e32de2c/yarn Databases: SQLite: 3.39.5 - /usr/bin/sqlite3 Browsers: Safari: 17.1 npmPackages: @redwoodjs/core: 6.4.0 => 6.4.0
Are you interested in working on this?
The text was updated successfully, but these errors were encountered: