将 Rails App 推送到 Heroku 时出现什么错误
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 的多种变体,但是一旦 bootstrap 取消注释,我就会遇到上述问题。
application.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 文件
中的 bootstrap 版本来解决这个问题
来自 :
收件人:
我已经有一段时间没弄清楚这个错误了,我在将它推送到 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 的多种变体,但是一旦 bootstrap 取消注释,我就会遇到上述问题。
application.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 文件
中的 bootstrap 版本来解决这个问题来自 :
收件人: