Skip to content

Webpacker 5.2.1 compilation issues with Node 15? #2874

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

Closed
sedubois opened this issue Jan 11, 2021 · 2 comments · Fixed by #2877
Closed

Webpacker 5.2.1 compilation issues with Node 15? #2874

sedubois opened this issue Jan 11, 2021 · 2 comments · Fixed by #2877

Comments

@sedubois
Copy link

This follows up on rails/rails#41060.

On a macbook with Node 15.5.1 and Rails 6.1.0 rails new will create an app that fails to start.

According to the Prerequisites in Webpacker's README, supported Node versions are Node.js 10.22.1+ || 12+ || 14+. Does this include or exclude Node 15?

If Node 15 is supported, it should be added to the CI?

If Node 15 is not supported, webpacker should raise an error upon startup saying it's not compatible with Node 15?

@guillaumebriday
Copy link
Member

What's your errors?

@sedubois
Copy link
Author

sedubois commented Jan 11, 2021

For the errors I can only refer to the Rails forum discussion linked from the Github discussion. I don't know which part is accurate as I'm just the messenger 🙂 That's why it would be great to add it to CI. But let me know if you first need help in reproducing it on my machine.

NB: In my own test, running rails new (on my macbook with Node 14) leads to the installation of node-sass 4.14.1, which to my understanding is not compatible with Node 15.

rossta added a commit to rossta/webpacker that referenced this issue Jan 13, 2021
Fixes rails#2874

Until Webpacker uses node-sass 5.0+, node version 15 isn't supported.
gauravtiwari pushed a commit that referenced this issue Jan 13, 2021
Fixes #2874

Until Webpacker uses node-sass 5.0+, node version 15 isn't supported.
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 a pull request may close this issue.

2 participants