Skip to content
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

Fix create-react-app on M1: force NodeJS version 16 #3102

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion examples/create-react-app/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ http_archive(
],
)

load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install")
load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install")

# M1 Macs require Node 16+
node_repositories(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the issue is present in all examples and applications using rules_nodejs, so let's not just fix it in one place.
I think #3107 is more principled

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good!

package_json = ["//:package.json"],
node_version = "16.5.0",
)

yarn_install(
# Name this npm so that Bazel Label references look like @npm//package
Expand Down