[英]What is this error when pushing Rails App to Heroku
已經有一段時間我無法弄清楚這個錯誤,我在將它推送到 Heroku 時收到了。
ERROR in ./app/javascript/stylesheets/application.scss
remote: Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
remote: ModuleBuildError: Module build failed (from ./node_modules/postcss-loader/src/index.js):
remote: ParserError: Syntax Error at line: 1, column 25
完整的錯誤信息: https : //gist.github.com/zilton7/bbac886c75523aab75bc3561ec22ed55
我已經為 application.scss 嘗試了很多變體,但是一旦我取消了引導程序的注釋,我就會遇到上述問題。
應用程序.scss
// @import "~bootswatch/dist/darkly/variables";
@import "~bootstrap/scss/bootstrap";
// @import "~bootswatch/dist/darkly/bootswatch";
// @import "trix/dist/trix";
// @import "custom"
在 Heroku 上部署 Rails 應用程序時遇到了同樣的問題。 我通過更改 package.json 文件中的引導程序版本來解決這個問題
從 :
到:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.