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

Constrain supported node versions #2877

Merged
merged 1 commit into from
Jan 13, 2021
Merged

Conversation

rossta
Copy link
Member

@rossta rossta commented Jan 13, 2021

Fixes #2874

Until Webpacker uses node-sass 5.0+, node version 15 isn't supported.

Fixes rails#2874

Until Webpacker uses node-sass 5.0+, node version 15 isn't supported.
@gauravtiwari gauravtiwari merged commit 01cf913 into rails:master Jan 13, 2021
@gmcgibbon
Copy link
Member

I think there's been a misunderstanding here.

Webpacker is compatible with Node 15, and the issue this was originally linked to was related to node-sass's use of node-gyp (which requires python to build native extensions for node-sass). Node-sass isn't on master anymore (see #2772). Sass support was also made optional in #2802, so any dart-related issues should be sidestepped by default too.

The changeset I had in mind was more like this: gmcgibbon@310d3c6

I think we can add Node 15 to CI (simply because it is good to test webpacker under the latest Node) and revert this patch.

gmcgibbon added a commit to gmcgibbon/webpacker that referenced this pull request Jan 13, 2021
Node 15 is supported by webpacker, but node-sass is causing native build
extension issues for users without Python in webpacker 5.x.
gauravtiwari pushed a commit that referenced this pull request Jan 13, 2021
* Add Node 15.x to CI matrix

* Revert "Constrain supported node versions (#2877)"

Node 15 is supported by webpacker, but node-sass is causing native build
extension issues for users without Python in webpacker 5.x.
@rossta
Copy link
Member Author

rossta commented Jan 13, 2021

@gmcgibbon Thanks for the clarification and the quick fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Webpacker 5.2.1 compilation issues with Node 15?
3 participants