Reputation: 47
It has been some time now that I cannot figure out this error, I am receiving when pushing it to the 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
Full error message: https://gist.github.com/zilton7/bbac886c75523aab75bc3561ec22ed55
I have tried many variations for application.scss, but once I have bootstrap uncommented I get the said issue.
application.scss
// @import "~bootswatch/dist/darkly/variables";
@import "~bootstrap/scss/bootstrap";
// @import "~bootswatch/dist/darkly/bootswatch";
// @import "trix/dist/trix";
// @import "custom"
Upvotes: 2
Views: 597
Reputation: 214
I had same issue while deploying my rails application on Heroku. I resolve this by changing bootstrap version in package.json file
from :
To:
Source : https://github.com/rails/webpacker/issues/3188
Upvotes: 3