我在推送到 heroku repo 时遇到了这个错误
remote: rake aborted!
remote: Sprockets::DoubleLinkError: Multiple files with the same output path cannot be linked ("style.css")
remote: In "/tmp/build_f430cee0cae4a9543fac20926137c7cc/app/assets/config/manifest.js" these files were linked:
remote: - /tmp/build_f430cee0cae4a9543fac20926137c7cc/app/assets/stylesheets/style.css
remote: - /tmp/build_f430cee0cae4a9543fac20926137c7cc/app/assets/stylesheets/style.scss
我已经尝试过这些建议:heroku run rake tmp:clear
heroku repo:reset -a <app name>
heroku repo:purge_cache -a <app name>
但是当我推送到 Heroku Remote 时,我仍然不断收到错误消息
最佳答案
对我来说,这只是因为我有 两个样式表,而我应该只有一个 。就我而言,我有
myapp/app/assets/stylesheets.application.css
和myapp/app/assets/stylesheets.application.css.scss
我应该只有其中之一我删除了
application.css
问题就解决了
关于ruby-on-rails - 如何解决 Sprockets::DoubleLinkError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62613142/