Replies: 1 comment
-
You should be able to update directly to whatever version you want, though going through RC was mentioned as the most step-by-step way to go about it. The error you're seeing is most likely because webpack-dev-server v5 has dependency on open package that requires node 18 at least. You should be able to go around it by using webpack-dev-server v4 https://www.npmjs.com/package/webpack-dev-server/v/4.15.2 https://webpack.js.org/configuration/dev-server/
Both Node 16 and 17 are now EOL so recommendation would be not to use either of them. Even Node 18 is coming to EOL next year so migrating to later versions is probably the way to go |
Beta Was this translation helpful? Give feedback.
-
Hi, I am trying to migrate from webpacker v5 to shakapacker,
reading the guide it seems to imply that I should upgrade webpacker v5 to webpacker 6.0.0.rc.6.
I am having an issue after I run bundle exec rails webpacker:install
it is expecting node 18 instead of node 16.20.2.
the reason why I want to migrate to shakapacker is because I can't update node 16.20.2 to node 17.
Node17 updated SSL provider, which introduced breaking changes. From V16 to V17, this causes
0308010C:digital envelope routines::unsupported errors during pre-compiling
I believe this is because the webpacker is using some old encryption algorithm somewhere, so after upgrading to Shakapacker I can upgrade my node from 16 to 17.
Please advise if I can migrate from webpacker v5 to shakapacker without upgrading webpacker v5 to v6?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions