Ruby on Rails Deploy error Command "webpack" not found

Hi all,

I am getting this error during my deployment:

Nov 15 09:50:59 PM  Compiling...
Nov 15 09:51:00 PM  Compilation failed:
Nov 15 09:51:00 PM  yarn run v1.22.19
Nov 15 09:51:00 PM  info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Nov 15 09:51:00 PM  
Nov 15 09:51:00 PM  
Nov 15 09:51:00 PM  error Command "webpack" not found.
Nov 15 09:51:00 PM  
Nov 15 09:51:00 PM  ==> Build failed

Here is my setup:
Rails 7.0.4
Ruby 3.1.2
Yarn 1.22.19
Webpack 4.46.0

Please let me know what other information would be helpful.

Thanks

This resolved the issue for me:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.