Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"bundle update" #265

Merged
merged 2 commits into from
Oct 8, 2019
Merged

"bundle update" #265

merged 2 commits into from
Oct 8, 2019

Conversation

christiannelson
Copy link
Contributor

Upgrade dependencies.

Draft because this is failing locally and I want to see if it fails elsewhere.

@mattbrictson
Copy link
Contributor

It is a sprockets 4.0.0 thing and this is the solution (I verified it locally): rails/sprockets#597 (comment)

@christiannelson
Copy link
Contributor Author

@mattbrictson do you have a moment to push a commit?

@mattbrictson
Copy link
Contributor

✅ Done

@eskfung eskfung marked this pull request as ready for review October 8, 2019 21:13
Copy link
Contributor

@eskfung eskfung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great discovery!

christiannelson and others added 2 commits October 8, 2019 16:26
In sprockets 4.0.0, the `link_directory ../stylesheets .css` directive
causes sprockets to process all `.scss` files in an arbitrary order,
regardless of any `@import` statements. This leads to undefined variable
errors when e.g. the file using a variable is processed before the file
that defines it.

Fix by explicitly rooting the sprockets manifest at `application.css`,
as suggested here:

rails/sprockets#597 (comment)
@christiannelson christiannelson merged commit e91b01a into master Oct 8, 2019
@christiannelson christiannelson deleted the bundle-update branch October 8, 2019 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants