Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Can';t推到heroku导轨6。找不到命令webpacker/预编译资产失败_Ruby On Rails_Heroku_Assets_Webpacker - Fatal编程技术网

Ruby on rails Can';t推到heroku导轨6。找不到命令webpacker/预编译资产失败

Ruby on rails Can';t推到heroku导轨6。找不到命令webpacker/预编译资产失败,ruby-on-rails,heroku,assets,webpacker,Ruby On Rails,Heroku,Assets,Webpacker,当我跑的时候 git push heroku master 我明白了: 3d03d9a9bed492eab33bdbd65f7.css remote: I, [2020-11-22T00:08:54.351994 #1614] INFO -- : Writing /tmp/build_9cb71dd2/public/assets/rebel-99a5cf4009e103727878a62db3995432aec733d03d9a9bed492eab33bdbd65f7.css.

当我跑的时候

git push heroku master
我明白了:

3d03d9a9bed492eab33bdbd65f7.css
remote:        I, [2020-11-22T00:08:54.351994 #1614]  INFO -- : Writing /tmp/build_9cb71dd2/public/assets/rebel-99a5cf4009e103727878a62db3995432aec733d03d9a9bed492eab33bdbd65f7.css.gz
remote:        Compiling...
remote:        Compilation failed:
remote:        yarn run v1.22.4
remote:        info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
remote:        
remote:        
remote:        error Command "webpack" not found.
remote:        
remote: 
remote:  !
remote:  !     Precompiling assets failed.
remote:  !
remote:  !     Push rejected, failed to compile Ruby app.
remote: 
remote:  !     Push failed
remote: Verifying deploy...


我到处都找遍了到底发生了什么事?我该如何解决这个问题?谢谢!

“错误命令”网页“未找到”-这似乎很清楚,不是吗?你是否依赖你的
包中的
webpack
。json
?我有webpack gem,我不确定json是用于什么包或如何使用它。对不起,我是N00b