我有一个简单的 Rails 6 应用程序(仅限 API),它在开发中运行良好,但是在部署到 Heroku 时出现此错误:
Preparing app for Rails asset pipeline
remote: Running: rake assets:precompile
remote: Compiling…
remote: Compilation failed:
remote: error Command "webpack" not found.
remote:
remote:
remote: !
remote: ! Precompiling assets failed.
我需要做什么来解决这个问题?