Zilton
Zilton

Reputation: 47

What is this error when pushing Rails App to Heroku

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

Answers (1)

Jaydip Pansuriya
Jaydip Pansuriya

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 :

enter image description here

To:

enter image description here

Source : https://github.com/rails/webpacker/issues/3188

Upvotes: 3

Related Questions