-
Notifications
You must be signed in to change notification settings - Fork 524
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
examples/create-react-app is broken on Apple M1 #3101
Comments
this is mainly caused by the missing arm version of nodejs distributions. what we could do is improve the error message so that users know what to do when get encounter this. |
Yup what @thesayyn said. To be precise, the default node is adding
to the example fixes it. I suspect the right answer for this issue is that we should update the default node version in our 5.0 release (it's a breaking change) https://github.com/bazelbuild/rules_nodejs/blob/5.x/nodejs/repositories.bzl#L11 |
As of 2021-10-26, v16 has entered LTS, so it's the most appropriate default. Also, it provides darwin_arm releases (apple silicon) which many developers now expect. BREAKING CHANGE: The default nodejs version is now 16.12.0. To go back to the previous default, put this in your WORKSPACE: ```starlark load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories") node_repositories( node_version = "14.17.5", ) ``` Fixes #3101
As of 2021-10-26, v16 has entered LTS, so it's the most appropriate default. Also, it provides darwin_arm releases (apple silicon) which many developers now expect. BREAKING CHANGE: The default nodejs version is now 16.12.0. To go back to the previous default, put this in your WORKSPACE: ```starlark load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories") node_repositories( node_version = "14.17.5", ) ``` Fixes #3101
As of 2021-10-26, v16 has entered LTS, so it's the most appropriate default. Also, it provides darwin_arm releases (apple silicon) which many developers now expect. BREAKING CHANGE: The default nodejs version is now 16.12.0. To go back to the previous default, put this in your WORKSPACE: ```starlark load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories") node_repositories( node_version = "14.17.5", ) ``` Fixes #3101
As of 2021-10-26, v16 has entered LTS, so it's the most appropriate default. Also, it provides darwin_arm releases (apple silicon) which many developers now expect. BREAKING CHANGE: The default nodejs version is now 16.12.0. To go back to the previous default, put this in your WORKSPACE: ```starlark load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories") node_repositories( node_version = "14.17.5", ) ``` Fixes #3101
🐞 bug report
Affected Rule
create-react-app example
Is this a regression?
No
Description
Example for create-react-app does not built on Apple M1 because NodeJS versions below 16 are not supported (relevant)
🔬 Minimal Reproduction
On an Apple M1 machine, run:
It results in the error seen below. Same command succeeds when run on Ubuntu (I don't have an Intel Mac ready to test)
🔥 Exception or Error
🌍 Your Environment
Operating System:
Output of
bazel version
:Rules_nodejs version:
(Please check that you have matching versions between WORKSPACE file and
@bazel/*
npm packages.)Anything else relevant?
Proposed fix inspired by @PengKuang in discussion for #2733
The text was updated successfully, but these errors were encountered: